Update raytraced bake output

This commit is contained in:
luboslenco
2019-08-31 20:38:01 +02:00
parent 9c4b3e6b05
commit 3ece5dbdec
2 changed files with 3 additions and 1 deletions
Binary file not shown.
+3 -1
View File
@@ -82,6 +82,8 @@ void raygeneration() {
RayDesc ray;
ray.TMin = 0.01;
ray.TMax = 10.0;
// ray.TMin = 0.005; // cavity
// ray.TMax = 0.01;
ray.Origin = payload.ray_origin;
ray.Direction = payload.ray_dir;
@@ -92,7 +94,7 @@ void raygeneration() {
float b = 1.0 - a;
color = color * b + (1.0 - payload.color.r).xxx * a;
render_target[DispatchRaysIndex().xy] = float4(color.xyz, 0.0f);
render_target[DispatchRaysIndex().xy] = float4(color.xyz, 1.0f);
}
[shader("closesthit")]