The shader code and all code snippets in this post are under CC0 license and can be used freely without the author's permission. Images and videos, and assets depicted in those, do not fall under this license. For more info, see our License terms.
Anything that will cover the whole screen, so usually a ColorRect for example. This is because the shader in a screen shader, meaning it will use SCREEN_TEXTURE and SCREEN_UV
lentsius
1 year ago
It should be “textureLod” instead of “texture” I believe.
What do I apply it to?
Anything that will cover the whole screen, so usually a ColorRect for example. This is because the shader in a screen shader, meaning it will use SCREEN_TEXTURE and SCREEN_UV
It should be “textureLod” instead of “texture” I believe.
“texture” also works for me.
how to do the same to a vec4 (like a shape made with code) instead of a texture?