projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
audio&island
[carveJwlIkooP6JGAAIwe30JlM.git]
/
gate.h
diff --git
a/gate.h
b/gate.h
index 7088c7dc5c236dc03223e5b3948904a6011278d0..3151878f25a4f7625c41bb0fe7d7bbe357effdf4 100644
(file)
--- a/
gate.h
+++ b/
gate.h
@@
-162,7
+162,7
@@
static void render_gate( teleport_gate *gate, m4x3f camera )
}
render_world( projection, cam_new );
}
render_world( projection, cam_new );
-
+
if( grender.high_qual )
{
/*
if( grender.high_qual )
{
/*
@@
-202,6
+202,14
@@
static void render_gate( teleport_gate *gate, m4x3f camera )
}
else
{
}
else
{
+ glDisable( GL_STENCIL_TEST );
+
+ render_water_texture( cam_new );
+ fb_use( NULL );
+ glEnable( GL_STENCIL_TEST );
+
+ render_water_surface( projection, cam_new );
+
glStencilMask( 0xFF );
glStencilFunc( GL_ALWAYS, 1, 0xFF );
glDisable( GL_STENCIL_TEST );
glStencilMask( 0xFF );
glStencilFunc( GL_ALWAYS, 1, 0xFF );
glDisable( GL_STENCIL_TEST );