#1614 Fix for moire pattern in specular highlights. Incidental cleanup.
parent
01c82642ac
commit
83f9885d73
|
|
@ -142,18 +142,9 @@ vec2 getScreenCoordinate(vec2 screenpos)
|
|||
}
|
||||
|
||||
vec4 getNorm(vec2 screenpos)
|
||||
{
|
||||
return texture(normalMap, screenpos.xy);
|
||||
}
|
||||
|
||||
// return packedNormalEnvIntensityFlags since GBUFFER_FLAG_HAS_PBR needs .w
|
||||
// See: C++: addDeferredAttachments(), GLSL: softenLightF
|
||||
vec4 getNormalEnvIntensityFlags(vec2 screenpos, out vec3 n, out float envIntensity)
|
||||
{
|
||||
vec4 norm = texture(normalMap, screenpos.xy);
|
||||
n = norm.xyz;
|
||||
envIntensity = texture(emissiveRect, screenpos.xy).r;
|
||||
|
||||
norm.xyz = normalize(norm.xyz);
|
||||
return norm;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue