Shader abilities
#3817
-
I understand that the usual goal of a material fragment block is to compute material properties, but can it do other things permitted in OpenGL ES fragment shaders, such as |
Beta Was this translation helpful? Give feedback.
Answered by
romainguy
Apr 16, 2021
Replies: 1 comment 4 replies
-
You can do anything GLSL support but we don't support writing to gl_* variables. Meaning that we may break your code in the future since we make no guarantees (esp as we will eventually move away from GL and focus on Vulkan and Metal). The use of discard is fully supported though. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
jwwalker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do anything GLSL support but we don't support writing to gl_* variables. Meaning that we may break your code in the future since we make no guarantees (esp as we will eventually move away from GL and focus on Vulkan and Metal). The use of discard is fully supported though.