+ | Texture working

This commit is contained in:
TheRedShip
2025-01-28 22:09:27 +01:00
parent 8466e672f6
commit ae83d7d9f1
8 changed files with 10 additions and 17 deletions

View File

@ -146,6 +146,8 @@ hitInfo traverseBVHs(Ray ray)
if (temp_hit.t < hit.t)
{
hit.u = temp_hit.u;
hit.v = temp_hit.v;
hit.t = temp_hit.t;
hit.last_t = temp_hit.last_t / bvh_data.scale;
hit.obj_index = temp_hit.obj_index;