TINYGL: Added fog support.
This commit is contained in:
parent
93e5e9a4da
commit
cdaec9de8d
14 changed files with 396 additions and 70 deletions
|
@ -178,6 +178,14 @@ void GLContext::init(int screenW, int screenH, Graphics::PixelFormat pixelFormat
|
|||
current_shade_model = TGL_SMOOTH;
|
||||
cull_face_enabled = 0;
|
||||
|
||||
// fog
|
||||
fog_enabled = false;
|
||||
fog_mode = TGL_EXP;
|
||||
fog_color = Vector4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
fog_density = 1.0f;
|
||||
fog_start = 0.0f;
|
||||
fog_end = 0.0f;
|
||||
|
||||
// clear
|
||||
clear_color = Vector4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
clear_depth = 1.0f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue