projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
entities zones
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_render.h
diff --git
a/world_render.h
b/world_render.h
index 517c19fa067c7243a00660a36f9e2ac6b47f6c34..09ecc19e4ce9241eca46edcf04ab43df6cd406a3 100644
(file)
--- a/
world_render.h
+++ b/
world_render.h
@@
-346,7
+346,8
@@
VG_STATIC void render_sky( world_instance *world, camera *cam )
glDepthMask( GL_TRUE );
}
glDepthMask( GL_TRUE );
}
-VG_STATIC void render_world_gates( world_instance *world, camera *cam )
+VG_STATIC void render_world_gates( world_instance *world, camera *cam,
+ int layer_depth )
{
float closest = INFINITY;
{
float closest = INFINITY;
@@
-371,18
+372,23
@@
VG_STATIC void render_world_gates( world_instance *world, camera *cam )
if( gate ){
#if 0
world_instance *dest_world = &world_global.worlds[ gate->world_index ];
if( gate ){
#if 0
world_instance *dest_world = &world_global.worlds[ gate->world_index ];
- render_gate( dest_world, gate, cam );
+ render_gate( dest_world, gate, cam
, layer_depth
);
#else
#else
- render_gate( world, gate, cam );
+ render_gate( world, gate, cam
, layer_depth
);
#endif
#endif
+
+ /* should really be set in fixed update since its used in the physics
+ * of most systems. too bad! */
+ world->rendering_gate = gate;
}
}
}
}
-VG_STATIC void render_world( world_instance *world, camera *cam )
+VG_STATIC void render_world( world_instance *world, camera *cam,
+ int layer_depth )
{
render_sky( world, cam );
{
render_sky( world, cam );
- render_world_routes( world, cam );
+ render_world_routes( world, cam
, layer_depth
);
render_world_standard( world, cam );
render_world_vb( world, cam );
render_world_alphatest( world, cam );
render_world_standard( world, cam );
render_world_vb( world, cam );
render_world_alphatest( world, cam );