more project structure cleanup, removing spaghetti code, using traits
This commit is contained in:
Binary file not shown.
@@ -96,8 +96,8 @@ HitResult castNodes(Ray ray, uint maxSteps)
|
||||
pos += incAxis * raySign;
|
||||
|
||||
// Outside bounds
|
||||
if(pos.x < 0 || pos.y < 0 || pos.z < 0) { break; }
|
||||
if(pos.x >= BLOCK_TEX_SIZE || pos.y > BLOCK_TEX_SIZE || pos.z >= NODE_TEX_SIZE) { break; }
|
||||
// if(pos.x < 0 || pos.y < 0 || pos.z < 0) { break; }
|
||||
// if(pos.x >= BLOCK_TEX_SIZE || pos.y > BLOCK_TEX_SIZE || pos.z >= NODE_TEX_SIZE) { break; }
|
||||
}
|
||||
|
||||
// Not found
|
||||
|
||||
Reference in New Issue
Block a user