diff options
author | Treeki <treeki@gmail.com> | 2011-02-21 03:17:08 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2011-02-21 03:17:08 +0100 |
commit | 1d5fa5585f08dd82a6722af3dd8ab360fd161151 (patch) | |
tree | 588245bb84e9155bbaa39b800891f880cc668d79 /TestApp/RenderWindow.cs | |
parent | b0760b28807b31cc1403584265c07feb87ac4887 (diff) | |
download | nw4rtools-1d5fa5585f08dd82a6722af3dd8ab360fd161151.tar.gz nw4rtools-1d5fa5585f08dd82a6722af3dd8ab360fd161151.zip |
this is a pain in the ass
Diffstat (limited to '')
-rw-r--r-- | TestApp/RenderWindow.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/TestApp/RenderWindow.cs b/TestApp/RenderWindow.cs index 2dfe1ec..64627a1 100644 --- a/TestApp/RenderWindow.cs +++ b/TestApp/RenderWindow.cs @@ -24,6 +24,9 @@ namespace TestApp { GL.ClearColor(0.1f, 0.2f, 0.5f, 0.0f); GL.Enable(EnableCap.DepthTest); + GL.Enable(EnableCap.Blend); + GL.BlendFunc(BlendingFactorSrc.SrcAlpha, BlendingFactorDest.OneMinusSrcAlpha); + m_glModel.Prepare(Context); } @@ -42,7 +45,8 @@ namespace TestApp { GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit); - Matrix4 modelview = Matrix4.LookAt(new Vector3(0, 1200, 500), Vector3.UnitZ, Vector3.UnitY); + //Matrix4 modelview = Matrix4.LookAt(new Vector3(1000, 600, 1000), new Vector3(1000, 0, 0), Vector3.UnitY); + Matrix4 modelview = Matrix4.LookAt(new Vector3(0, 0, 200), new Vector3(0, 0, 0), Vector3.UnitY); GL.MatrixMode(MatrixMode.Modelview); GL.LoadMatrix(ref modelview); |