TINYGL: Added fog support.

This commit is contained in:
Paweł Kołodziejski 2022-06-05 20:59:38 +02:00
parent 93e5e9a4da
commit cdaec9de8d
No known key found for this signature in database
GPG key ID: 0BDADC9E74440FF7
14 changed files with 396 additions and 70 deletions

View file

@ -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;