X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_gate.h;h=21cabe9d22150fdd79ff29666b2a3a32a8c019dc;hb=5e22cdfe9f6f83e807ce6456ab538d02104cd01d;hp=dd7177631836a9992567db76dde903638c6474b3;hpb=d00b1df8f80e4714dc2f9aa2189d242bb4d09a2f;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_gate.h b/world_gate.h index dd71776..21cabe9 100644 --- a/world_gate.h +++ b/world_gate.h @@ -143,13 +143,13 @@ static int render_gate( teleport_gate *gate, v3f viewpos, m4x3f camera ) glClear( GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT ); #else shader_gatelq_use(); - shader_gatelq_uPv( vg_pv ); + shader_gatelq_uPv( vg.pv ); shader_gatelq_uMdl( gate_xform ); shader_gatelq_uCam( viewpos ); - shader_gatelq_uTime( vg_time*0.25f ); + shader_gatelq_uTime( vg.time*0.25f ); shader_gatelq_uInvRes( (v2f){ - 1.0f / (float)vg_window_x, - 1.0f / (float)vg_window_y }); + 1.0f / (float)vg.window_x, + 1.0f / (float)vg.window_y }); glEnable( GL_STENCIL_TEST ); glStencilOp( GL_KEEP, GL_KEEP, GL_REPLACE );