mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02:00
+ | Pixelisation problem fixed
This commit is contained in:
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -80,5 +80,6 @@
|
||||
"xlocmon": "cpp",
|
||||
"xloctime": "cpp",
|
||||
"xtree": "cpp"
|
||||
}
|
||||
},
|
||||
"cmake.ignoreCMakeListsMissing": true
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
CAM 1.43879 3.42554 1.94198 -44.6001 -139.599 0.2 4 90 5
|
||||
CAM 1.43879 3.42554 1.94198 -44.6001 -139.599 0 4 90 5
|
||||
|
||||
|
||||
MAT 200 200 200 0.0 0.0 0.0 //white
|
||||
|
@ -151,7 +151,7 @@ vec3 pathtrace(Ray ray, inout uint rng_state)
|
||||
hitInfo hit = traceRay(ray);
|
||||
if (hit.obj_index == -1)
|
||||
{
|
||||
// light += GetEnvironmentLight(ray);
|
||||
light += GetEnvironmentLight(ray);
|
||||
// light += vec3(135 / 255.0f, 206 / 255.0f, 235 / 255.0f); //ambient color
|
||||
break;
|
||||
}
|
||||
@ -209,10 +209,7 @@ void main()
|
||||
return;
|
||||
|
||||
if (u_pixelisation != 1 && (uint(pixel_coords.x) % u_pixelisation != 0 || uint(pixel_coords.y) % u_pixelisation != 0))
|
||||
{
|
||||
imageStore(accumulation_image, pixel_coords, vec4(0.0));
|
||||
return;
|
||||
}
|
||||
|
||||
uint rng_state = uint(u_resolution.x) * uint(pixel_coords.y) + uint(pixel_coords.x);
|
||||
rng_state = rng_state + u_frameCount * 719393;
|
||||
|
Reference in New Issue
Block a user