Set pathtrace alpha to 1
This commit is contained in:
@@ -372,11 +372,11 @@ kernel void raytracingKernel(
|
|||||||
float a = 1.0 / (constant_buffer.eye.w + 1);
|
float a = 1.0 / (constant_buffer.eye.w + 1);
|
||||||
float b = 1.0 - a;
|
float b = 1.0 - a;
|
||||||
color = color * b + accum * a;
|
color = color * b + accum * a;
|
||||||
render_target.write(float4(color, 0.0f), tid);
|
render_target.write(float4(color, 1.0f), tid);
|
||||||
#else
|
#else
|
||||||
if (constant_buffer.eye.w == 0) {
|
if (constant_buffer.eye.w == 0) {
|
||||||
color = accum;
|
color = accum;
|
||||||
}
|
}
|
||||||
render_target.write(float4(mix(color, accum, 1.0 / 16.0), 0.0f), tid);
|
render_target.write(float4(mix(color, accum, 1.0 / 16.0), 1.0f), tid);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -373,11 +373,11 @@ kernel void raytracingKernel(
|
|||||||
float a = 1.0 / (constant_buffer.eye.w + 1);
|
float a = 1.0 / (constant_buffer.eye.w + 1);
|
||||||
float b = 1.0 - a;
|
float b = 1.0 - a;
|
||||||
color = color * b + accum * a;
|
color = color * b + accum * a;
|
||||||
render_target.write(float4(color, 0.0f), tid);
|
render_target.write(float4(color, 1.0f), tid);
|
||||||
#else
|
#else
|
||||||
if (constant_buffer.eye.w == 0) {
|
if (constant_buffer.eye.w == 0) {
|
||||||
color = accum;
|
color = accum;
|
||||||
}
|
}
|
||||||
render_target.write(float4(mix(color, accum, 1.0 / 16.0), 0.0f), tid);
|
render_target.write(float4(mix(color, accum, 1.0 / 16.0), 1.0f), tid);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
@@ -145,14 +145,14 @@ void raygeneration() {
|
|||||||
float a = 1.0 / (constant_buffer.eye.w + 1);
|
float a = 1.0 / (constant_buffer.eye.w + 1);
|
||||||
float b = 1.0 - a;
|
float b = 1.0 - a;
|
||||||
color = color * b + accum * a;
|
color = color * b + accum * a;
|
||||||
render_target[DispatchRaysIndex().xy] = half4(color, 0.0f);
|
render_target[DispatchRaysIndex().xy] = half4(color, 1.0f);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
if (constant_buffer.eye.w == 0) {
|
if (constant_buffer.eye.w == 0) {
|
||||||
color = accum;
|
color = accum;
|
||||||
}
|
}
|
||||||
render_target[DispatchRaysIndex().xy] = half4(lerp(color, accum, 1.0 / 4.0), 0.0f);
|
render_target[DispatchRaysIndex().xy] = half4(lerp(color, accum, 1.0 / 4.0), 1.0f);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user