Appletreeman
Member
In my game I have a surface that is used for some simple lighting and 90% of the time it works well.
However. There is an enemy in my game that caused (deliberate) graphical glitches which are created using a shader that affects the application surface.
The problem I have is that when the enemy is present the shader doesn't affect the lighting surface.
If I understand surfaces correctly when you set the surface target all further draw commands are drawn to that surface and then the surface is drawn to the screen until the surface target is reset.
Is there a way that I can draw my lighting surface to the application surface so that it is affected by the shader?
However. There is an enemy in my game that caused (deliberate) graphical glitches which are created using a shader that affects the application surface.
The problem I have is that when the enemy is present the shader doesn't affect the lighting surface.
If I understand surfaces correctly when you set the surface target all further draw commands are drawn to that surface and then the surface is drawn to the screen until the surface target is reset.
Is there a way that I can draw my lighting surface to the application surface so that it is affected by the shader?