projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fuck you, you cant put your couch there
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_gate.h
diff --git
a/world_gate.h
b/world_gate.h
index f2a383c1f2856aea16a060f686d9e2f638bb52fa..93322aaa0af11392955e34af7f6d604b671f7e3b 100644
(file)
--- 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,
}
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 );
{
v3f viewdir, gatedir;
m3x3_mulv( cam->transform, (v3f){0.0f,0.0f,-1.0f}, viewdir );
@@
-151,12
+151,12
@@
VG_STATIC int render_gate( world_instance *world_inside,
glStencilMask( 0x00 );
}
glStencilMask( 0x00 );
}
- render_world( world_inside, &gate_camera );
+ render_world( world_inside, &gate_camera
, layer_depth
);
{
glDisable( GL_STENCIL_TEST );
{
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 );
render_fb_bind( gpipeline.fb_main );
glEnable( GL_STENCIL_TEST );