T
TheMatrixHasMe
Guest
Hey guys, I purchased GMS2 yesterday and started programming a shader today. When I went to test it I got an error saying that the shader was invalid. So I created a shader is compiled check like so:
Anyhow, the fireball doesn't get drawn which means the shader is not compiled. The shader is just a default pass through shader for testing. I never had this problem with Studio 1 so is this because of directx 11 or whatever revision they changed to? Does that mean my graphics card doesn't process the shaders that GMS2 is kicking out?
Update: Okay, it looks like there is an issue with Shaders. I ran the YoYo dungeon demo product that GMS2 comes with and it gave me an invalid shader error:
Code:
if (shader_is_compiled(shd_fireball)){
shader_set(shd_fireball);
draw_sprite_ext(sprite_index,image_index,x,y,1,1,direction,c_white,1);
shader_reset();
}
Update: Okay, it looks like there is an issue with Shaders. I ran the YoYo dungeon demo product that GMS2 comes with and it gave me an invalid shader error:
Code:
___________________________________________
############################################################################################
FATAL ERROR in Vertex Shader compilation
ShaderName: sh_silhouette_shader
Invalid shader
at gml_Script_OT_Draw_Silhouettes (line 11) - shader_set(sh_silhouette_shader);
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Script_OT_Draw_Silhouettes (line 11)
called from - gml_Object_oController_Silhouettes_Draw_0 (line 2) - OT_Draw_Silhouettes();
Last edited by a moderator: