testing 32x32x32 nodes world

This commit is contained in:
Piotrek
2021-04-23 22:15:14 +02:00
parent b59523c13b
commit 526ff05ed2
6 changed files with 117 additions and 14 deletions
+2 -2
View File
@@ -63,7 +63,7 @@ vec4 castBricks(vec3 origin, vec3 start, vec3 dir, vec3 incAxis, uint addr)
// Check for bounds
if(pos.x < 0 || pos.y < 0 || pos.z < 0) { break; }
if(pos.x > 32 || pos.y > 32 || pos.z > 32) { break; }
if(pos.x > 31 || pos.y > 31 || pos.z > 31) { break; }
}
return vec4(0.5,0.5,0.5, 0.0);
@@ -88,7 +88,7 @@ vec3 castNodes(vec3 origin, vec3 dir)
vec3 incAxis = vec3(0,0,0);
// Iterate
for(int i=0;i<56;i++)
for(int i=0;i<110;i++)
{
// Get node
uint node = texelFetch(nodesTexture, ivec3(pos), 0).r;