There was an error while loading. Please reload this page.
1 parent ebf6312 commit 8e12877Copy full SHA for 8e12877
Runtime/EffectCompiler.cpp
@@ -1213,6 +1213,7 @@ UINT GeneratePassSource(
1213
if (isLastEffect) {
1214
// 255.001953 的由来见 https://stackoverflow.com/questions/52103720/why-does-d3dcolortoubyte4-multiplies-components-by-255-001953f
1215
result.append(R"(void WriteToOutput(uint2 pos, float3 color) {
1216
+ color = saturate(color);
1217
pos += __offset.zw;
1218
if ((int)pos.x >= __cursorRect.x && (int)pos.y >= __cursorRect.y && (int)pos.x < __cursorRect.z && (int)pos.y < __cursorRect.w) {
1219
float4 mask = __CURSOR.SampleLevel(__CURSOR_SAMPLER, (pos - __cursorRect.xy + 0.5f) * __cursorPt, 0);
0 commit comments