M
Micle
Guest
Hey everyone, I was testing out some shaders in GMS2 today but unfortunately I am getting a really annoying error whenever I try starting my game.
This is what I have in my Draw Event:
The shader is the default shader template you get when creating one and it's set to GLSL ES. When I start my game I get an error straight away.
When I download some shader demo off the internet and run it, it works fine but whenever I try creating a shader in my own project it doesn't work. This is really annoying. Any feedback will be appreciated.
This is what I have in my Draw Event:
Code:
shader_set( shd );
shader_reset();
Code:
___________________________________________
############################################################################################
FATAL ERROR in Vertex Shader compilation
ShaderName: shd
Invalid shader
at gml_Object_obj_Surfaces_Draw_0 (line 3) - shader_set( shd );
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_obj_Surfaces_Draw_0 (line 3)