Fix for VSM shader

This commit is contained in:
Edwin Jakobs
2020-05-30 14:17:04 +02:00
parent 20d364ae32
commit 2faa1e99f7

View File

@@ -101,7 +101,7 @@ val shaderVSM = """
| // Compute probabilistic upper bound.
| float d = t - moments.x;
| float p_max = variance / (variance + d*d);
| p_max = smoothstep(0.6, 1, p_max);
| p_max = smoothstep(0.6, 1.0, p_max);
| return max(p, p_max);
}
""".trimIndent()