-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement fog #549
Implement fog #549
Conversation
@@ -652,4 +654,27 @@ void FragmentGenerator::compileLUTLookup(std::string& shader, const PICA::Fragme | |||
shader += "lut_lookup_result *= " + std::to_string(scales[scale]) + ";\n"; | |||
} | |||
} | |||
} | |||
|
|||
void FragmentGenerator::compileFog(std::string& shader, const PICA::FragmentConfig& config) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🦊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🦊
BitField<0, 3, FogMode> mode; | ||
BitField<3, 1, u32> flipDepth; | ||
BitField<8, 8, u32> fogColorR; | ||
BitField<16, 8, u32> fogColorG; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For texenv constant colours it's normally ideal to pass them as uniforms as they change constantly, though we'll see if this is necessary here, since I don't expect games to constantly change fog colour
Before:
After:
Citra: