What is screenPos.w ?

Unity uses the 4th component of a float4 for various things. Sometimes it’s to detect what kind of light it is, other times it’s depth etc, depends. In this case it looks like W component of IN.screenPos

2 Likes