summaryrefslogtreecommitdiff
path: root/TestApp/RenderWindow.cs
diff options
context:
space:
mode:
Diffstat (limited to 'TestApp/RenderWindow.cs')
-rw-r--r--TestApp/RenderWindow.cs6
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);