~ | Modified scene

This commit is contained in:
TheRedShip
2025-01-12 21:38:04 +01:00
parent a551347084
commit 0482f34ce5
9 changed files with 54 additions and 13 deletions

View File

@ -144,8 +144,6 @@ vec3 pathtrace(Ray ray, inout uint rng_state)
vec3 color = vec3(1.0);
vec3 light = vec3(0.0);
float closest_t = 1e30;
for (int i = 0; i < camera.bounce; i++)
{
hitInfo hit = traceRay(ray);

View File

@ -38,9 +38,9 @@ vec3 randomHemisphereDirection(vec3 normal, inout uint rng_state)
vec3 GetEnvironmentLight(Ray ray)
{
vec3 sun_pos = vec3(-0.5, 0.5, 0.5);
vec3 sun_pos = vec3(-1., 1.0, 0.);
float SunFocus = 1.5;
float SunIntensity = 1;
float SunIntensity = 0.5;
vec3 GroundColour = vec3(0.5, 0.5, 0.5);
vec3 SkyColourHorizon = vec3(135 / 255.0f, 206 / 255.0f, 235 / 255.0f);
@ -53,4 +53,4 @@ vec3 GetEnvironmentLight(Ray ray)
// Combine ground, sky, and sun
vec3 composite = mix(GroundColour, skyGradient, groundToSkyT) + sun * int(groundToSkyT >= 1);
return composite;
}
}

View File

@ -46,4 +46,4 @@ Ray newRay(hitInfo hit, Ray ray, inout uint rng_state)
else if (mat.type == 1)
return (dieletricRay(hit, ray, mat));
return (ray);
}
}