• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Shader issue.

D

denizdeni

Guest
my code on Draw Gui:
Code:
if(waveydraw) {
var_time_var += 0.04
shader_set(shd_wave);
shader_set_uniform_f(shader_get_uniform(shd_wave,"time"), var_time_var);
shader_set_uniform_f(shader_get_uniform(shd_wave,"mouse_pos"), 0, 0);
shader_set_uniform_f(shader_get_uniform(shd_wave,"resolution"),  __view_get( e__VW.WView, 0 ),  __view_get( e__VW.HView, 0 ));
shader_set_uniform_f(shader_get_uniform(shd_wave,"wave_amount"), 5);
shader_set_uniform_f(shader_get_uniform(shd_wave,"wave_distortion"), 80 );
shader_set_uniform_f(shader_get_uniform(shd_wave,"wave_speed"), 2);
application_surface_draw_enable(false)
better_scaling_draw_surface(application_surface,0,0,1,1, 0, all, 255, true)
shader_reset();
}
Normally, it's looking like



If i set waveydraw to true it's looking like this.



why????
 

TsukaYuriko

☄️
Forum Staff
Moderator
For the sake of context, what are you expecting to happen instead? Please always include your expected scenario so that we can know how what's going on differs from what's intended. Undocumented code and two screenshots don't exactly form a solid basis to diagnose problems on.
 
Top