Shader Coding - Best Practices: Difference between revisions

Line 20: Line 20:
</syntaxhighlight>
</syntaxhighlight>
}}
}}
{{Note|If the fragment isn't running, there should be an error message in the log file (I wish they'd still be written to the console). Might be that the texture isn't defined in the supporting framework for instance - the shader assumed that it is available, but you need to declare it in the matching C++ code/effect file first.}}


{{Note|This is how you can make a pixel darker:
{{Note|This is how you can make a pixel darker: