• Create Account

### #ActualAshaman73

Posted 11 September 2012 - 12:16 PM

You should ensure to input only normalized normals to your encoding function, if you take the interpolated vertex normals you might encounter artifacts. Test if this works:
half4 encode (half3 n, float3 view)
{
half3 tmp = nomalize(n);
return half4(tmp.xy*0.5+0.5,0,0);
}


### #1Ashaman73

Posted 11 September 2012 - 12:16 PM

You should ensure to insert only normalized normals to your encoding function, if you take the interpolated vertex normals you might encounter artifacts. Test if this works:
half4 encode (half3 n, float3 view)
{
half3 tmp = nomalize(n);
return half4(tmp.xy*0.5+0.5,0,0);
}


PARTNERS