danibus
Member
I'm trying to make 2 shaders, following this example
Shaders are "God ray shader" and "underwater shader". Very simple and nice shaders.
Both are working ok together. But If I try to use only one single shader (i.e. "God ray shader") I get "god ray effect" in a black screen.
That means, shader is working, but I can't see my game sprites and backgr.
New in shader's world, read and tried to modify code lot of times, I can't get working only one shader.
Can you help me?
Also one question. When shaders are working, seems making click with mouse is not... accurate.
I have one object with big sprite "X" exit square to close game (like Windows), working when shaders are not working. But when shaders are working, I make click in "X" and nothing happens. Why?
Shaders are "God ray shader" and "underwater shader". Very simple and nice shaders.
Both are working ok together. But If I try to use only one single shader (i.e. "God ray shader") I get "god ray effect" in a black screen.
That means, shader is working, but I can't see my game sprites and backgr.
New in shader's world, read and tried to modify code lot of times, I can't get working only one shader.
Can you help me?
Also one question. When shaders are working, seems making click with mouse is not... accurate.
I have one object with big sprite "X" exit square to close game (like Windows), working when shaders are not working. But when shaders are working, I make click in "X" and nothing happens. Why?