16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 00:59:18 +02:00

simulation time object

This commit is contained in:
tmj-fstate
2017-03-29 00:50:53 +02:00
parent 9dda5037d3
commit 848db5878b
16 changed files with 379 additions and 331 deletions

View File

@@ -75,6 +75,11 @@ opengl_renderer::Init( GLFWwindow *Window ) {
glEnable( GL_COLOR_MATERIAL );
glColorMaterial( GL_FRONT, GL_AMBIENT_AND_DIFFUSE );
// ::glFogi( GL_FOG_COORD_SRC, GL_FOG_COORD );
// ::glFogi( GL_FOG_COORD_SRC, GL_FRAGMENT_DEPTH );
// ::glFogi( GL_FOG_MODE, GL_LINEAR );
// setup lighting
GLfloat ambient[] = { 0.0f, 0.0f, 0.0f, 1.0f };
::glLightModelfv( GL_LIGHT_MODEL_AMBIENT, ambient );