+ | Small opti

This commit is contained in:
TheRedShip
2025-01-26 18:09:07 +01:00
parent 9798a9942b
commit 07fd5870bf
2 changed files with 14 additions and 28 deletions

View File

@ -61,7 +61,7 @@ Ray transparencyRay(hitInfo hit, Ray ray, GPUMaterial mat, inout uint rng_state)
float eta = mat.refraction;
vec3 refractedDir = refract(ray.direction, hit.normal, 1.0 / eta);
float kr = fresnel(ray.direction, hit.normal, eta);
// float kr = fresnel(ray.direction, hit.normal, eta);
float randVal = randomValue(rng_state);
if (randVal < mat.metallic || length(refractedDir) == 0.0)