Hi! I'm trying to use the default shader that GM includes for create a Twist Distortion in a sprite, I attach the shader.
And this is the code for the obj that I want to apply the shader:
draw event:
shader_set(sh_twirldist);
shader_params = shader_get_uniform(sh_twirldist, "g_DistortAngle");
shader_set_uniform_f(shader_params, 1.0);
shader_params2 = shader_get_uniform(sh_twirldist, "g_DistortRadius");
shader_set_uniform_f(shader_params2, 1.0);
shader_params3 = shader_get_uniform(sh_twirldist, "g_DistortOffset");
shader_set_uniform_f(shader_params3, 0.0, 0.0);
draw_self();
shader_reset();
What happens right now is that nothing is draw. Do you know what I'm doing wrong? I think that I'm missing something 😦