Esempio n. 1
0
        public Vector2 UvCOffset()
        {
            var rr   = RTUtil.Refract(LightDir, N, RefractionFactor);
            var invZ = 1f / rr.z;

            return(new Vector2(-rr.x * invZ * Height, -rr.y * invZ * Height));
        }