SOLVED Using a Shader on Specific Object?

Wonsubon

Member
I want to use a shader for one object being used as the background and have UI elements that are separate objects (i.e. clock in the upper right) be unaffected by this, but when I try to create a surface to draw the shader on for the background object, it is unaffected. So, I ask, is it possible to use objects as surfaces or have I missed a step?
 

Yal

🐧 *penguin noises*
GMC Elder
You don't even need surfaces, just set the shader before drawing and unset when you're done.
GML:
shader_set(mysurf)
draw_self()
shader_reset()
 
Last edited:

Yal

🐧 *penguin noises*
GMC Elder
Fixed. This is why I maybe shouldn't try to answer programming questions at 3AM :p
 
Top