mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Fixed dithered PCF filter in shadow
This commit is contained in:
parent
cf5a7531df
commit
6cd4da877e
1 changed files with 0 additions and 4 deletions
|
@ -68,7 +68,6 @@ vec2 PCFkernel[4] = vec2[4](
|
|||
);
|
||||
|
||||
float evalShadowAttenuationPCF(vec4 position, vec4 shadowTexcoord) {
|
||||
#if 1
|
||||
float shadowScale = getShadowScale();
|
||||
|
||||
// Offset for efficient PCF, see http://http.developer.nvidia.com/GPUGems/gpugems_ch11.html
|
||||
|
@ -80,9 +79,6 @@ float evalShadowAttenuationPCF(vec4 position, vec4 shadowTexcoord) {
|
|||
fetchShadow(shadowTexcoord.xyz + shadowScale * vec3(offset + PCFkernel[2], 0.0)) +
|
||||
fetchShadow(shadowTexcoord.xyz + shadowScale * vec3(offset + PCFkernel[3], 0.0))
|
||||
));
|
||||
#else
|
||||
float shadowAttenuation = fetchShadow(shadowTexcoord.xyz);
|
||||
#endif
|
||||
|
||||
return shadowAttenuation;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue