Skip to content
Snippets Groups Projects
Commit 4e65fefb authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix rendering artifacts

parent f70f9e52
No related branches found
No related tags found
No related merge requests found
......@@ -145,7 +145,9 @@ vec2 getScreenCoordinate(vec2 screenpos)
vec4 getNorm(vec2 screenpos)
{
return texture(normalMap, screenpos.xy);
vec4 norm = texture(normalMap, screenpos.xy);
norm.xyz = normalize(norm.xyz);
return norm;
}
// return packedNormalEnvIntensityFlags since GBUFFER_FLAG_HAS_PBR needs .w
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment