X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_gate.h;h=2febafaaa0434f46a249ec2036cb686532e569ca;hb=2673c575386c604fc2c0603dba2480eda05cf97a;hp=f2a383c1f2856aea16a060f686d9e2f638bb52fa;hpb=a1056ed8198f0f5be0e0f341da8bd49aa6c47198;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_gate.h b/world_gate.h index f2a383c..2febafa 100644 --- a/world_gate.h +++ b/world_gate.h @@ -67,7 +67,7 @@ VG_STATIC void world_gates_init(void) } VG_STATIC int render_gate( world_instance *world_inside, - ent_gate *gate, camera *cam ) + ent_gate *gate, camera *cam, int layer_depth ) { v3f viewdir, gatedir; m3x3_mulv( cam->transform, (v3f){0.0f,0.0f,-1.0f}, viewdir ); @@ -130,8 +130,6 @@ VG_STATIC int render_gate( world_instance *world_inside, shader_model_gate_uPv( cam->mtx.pv ); shader_model_gate_uMdl( gate->to_world ); shader_model_gate_uCam( cam->pos ); - - /* TODO(ART IMPROVEMENT): animate alpha of this? */ shader_model_gate_uColour( (v4f){0.0f,1.0f,0.0f,0.0f} ); shader_model_gate_uTime( vg.time*0.25f ); shader_model_gate_uInvRes( (v2f){ @@ -151,12 +149,12 @@ VG_STATIC int render_gate( world_instance *world_inside, glStencilMask( 0x00 ); } - render_world( world_inside, &gate_camera ); + render_world( world_inside, &gate_camera, layer_depth ); { glDisable( GL_STENCIL_TEST ); - render_water_texture( world_inside, &gate_camera ); + render_water_texture( world_inside, &gate_camera, layer_depth ); render_fb_bind( gpipeline.fb_main ); glEnable( GL_STENCIL_TEST );