コード例 #1
0
        public void Setup()
        {
            numericsMat1 = Matrix4x4.CreateFromYawPitchRoll(10, 3, 3);
            numericsMat2 = Matrix4x4.CreateOrthographic(10, 10, 0.1f, 1000);

            mat1 = new VectorMath.Mat4x4(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16);
            mat2 = new VectorMath.Mat4x4(11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26);
        }
コード例 #2
0
ファイル: Graphics.cs プロジェクト: Jypeli-JYU/Jypeli
        public static void ResetScreenSize()
        {
            ViewMatrix = Matrix.CreateLookAt(
                new Vector3(0.0f, 0.0f, 1.0f),
                Vector3.Zero,
                Vector3.UnitY
                );
            ProjectionMatrix = Matrix.CreateOrthographic(
                (float)Game.Screen.ViewportWidth,
                (float)Game.Screen.ViewportHeight,
                1.0f, 2.0f
                );

            ViewProjectionMatrix = ViewMatrix * ProjectionMatrix;

            //BasicTextureEffect.View = ViewMatrix;
            //BasicTextureEffect.Projection = ProjectionMatrix;
        }