Update rendering_graph_node.c
This commit is contained in:
1 parent
8cda57e716
commit
49b5d9f35f
1 file changed
+1
-1
@@ -260,7 +260,7 @@ static void geo_process_perspective(struct GraphNodePerspective *node) {
|
||||
aspect = 1.33333f;
|
||||
#endif
|
||||
|
||||
if (gCurrLevelNum > 3)
|
||||
if (gCamera)
|
||||
gWorldScale = MAX(((gCamera->pos[0] * gCamera->pos[0]) + (gCamera->pos[1] * gCamera->pos[1]) + (gCamera->pos[2] * gCamera->pos[2]))/67108864, 1.0f);
|
||||
else
|
||||
gWorldScale = 1.0f;
|
||||
|
||||
Reference in new issue
Block a user