-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Clarify use of source_color in Shading Language #10119
Clarify use of source_color in Shading Language #10119
Conversation
hints for proper sRGB -> linear conversion (i.e. ``source_color``), as Godot's | ||
3D engine renders in linear color space. If this is not done, the texture will | ||
appear washed out. | ||
.. admonition:: Source Color |
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.
Looks good to me
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.
I'll be trying this out whenever a note block could use a title, then. I don't mind reverting such changes back if it proves to be a problem. I think in most cases, a note with a title should be a subsection, though?
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.
I think so. I suspect that most notes will be fine without a special title
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.
Overall this is a great change, I've left a couple small suggestions for your consideration
hints for proper sRGB -> linear conversion (i.e. ``source_color``), as Godot's | ||
3D engine renders in linear color space. If this is not done, the texture will | ||
appear washed out. | ||
.. admonition:: Source Color |
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.
Looks good to me
Rewrite section on using the source_color uniform hint. Content is mostly the same, but is more clear. Rename one instance of "shader hint" to "uniform hint". Adds a section header for Uniform hints.
e137450
to
7303e57
Compare
Changes applied, plus one minor change to wrap the paragraphs to ~80 characters. |
Thank you! |
The rest of this section (Uniforms) can use some more work. It needs reorganization, more subheaders, and some rewrites for clarity. That will be a separate PR though.