Esempio n. 1
0
 public void MainVS()
 {
     Vector4 loc = Transform.Multiply(new Vector4(Position_VS, 1));
     Position_VSPS = Camera.Multiply(loc);
     Normal_VSPS = Transform.Multiply(new Vector4(Normal_VS, 0)).xyz;
     UV_VSPS = new Vector2(UV_VS.x, 1.0-UV_VS.y);
 }
Esempio n. 2
0
        public void MainVS()
        {
            Vector3 loc = new Vector3((Position_VS * Size) + Position, 0);
            Position_VSPS = Camera.Multiply(new Vector4(loc, 1.0));

            Vector2 uv = Position_VS + TexelOffset;
            UV_VSPS = (new Vector2(uv.x, 1.0-uv.y) * SizeUV) + PositionUV;
        }
Esempio n. 3
0
 public void MainVS()
 {
     Vector3 loc = new Vector3((Position_VS * Size) + Position, 0);
     Position_VSPS = Camera.Multiply(new Vector4(loc, 1.0));
     UV_VSPS = new Vector2(Position_VS.x, 1.0-Position_VS.y) + TexelOffset;
 }
Esempio n. 4
0
 public void MainVS()
 {
     Vector3 loc = new Vector3((Position_VS * Size) + Position, 0);
     Position_VSPS = Camera.Multiply(new Vector4(loc, 1.0));
 }