mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
+ | Small tweaks
This commit is contained in:
@ -115,8 +115,7 @@ bool intersectTriangle(Ray ray, GPUObject obj, out hitInfo hit)
|
||||
|
||||
bool intersectCube(Ray ray, GPUObject obj, out hitInfo hit)
|
||||
{
|
||||
vec3 obj_size = obj.vertex1;
|
||||
vec3 halfSize = obj_size * 0.5;
|
||||
vec3 halfSize = obj.cube_size() * 0.5;
|
||||
vec3 rayOriginLocal = ray.origin - obj.position;
|
||||
|
||||
vec3 invDir = 1.0 / ray.direction;
|
||||
|
Reference in New Issue
Block a user