Shaders on PointLight2D to customize the light mask, possible ? #9886
MelPeslier
started this conversation in
2D
Replies: 2 comments 9 replies
-
Is the |
Beta Was this translation helpful? Give feedback.
8 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to right a shader code to alter the texture the light is using ?
I made a shader code to make some wave mask that I want to use on the light, so it mixes with the texture and i can have custom waves of light with it. I'm using lights because I want to use the sdf collisions, occluders and all the related lights features.
The problem is that it's not working, I wrote it into the fragment() and I also tested into the light(), but It doesn't work
Here is the shader code, and the result in the material preview, and the final result is the unaffected light in the scene (that have a fully suarred texture)
Shader code :
Result wanted :
Unaffected scene :
Test using subviewports : #9886 (comment) ( just below first comment)
Beta Was this translation helpful? Give feedback.
All reactions