you need to draw a rectangle using the return of d.begin_shader_mode(&shader) not just with d.draw_rectangle() to render the shader