oxiKKK / oxware

A public open-source cheat for CS 1.6
MIT License
107 stars 16 forks source link

fog #11

Closed daraleak closed 1 year ago

daraleak commented 1 year ago

void Oxwa::Fog::Draw() { if (!cvar.visual_fog) return;

if (!Oxwa::ScreenShot::IsVisuals())
    return;

GLfloat glColor[] = { cvar.visual_fog_color[0], cvar.visual_fog_color[1], cvar.visual_fog_color[2], cvar.visual_fog_color[3] };
glEnable(GL_FOG);
glFogi(GL_FOG_MODE, GL_EXP);
glFogf(GL_FOG_DENSITY, cvar.visual_fog_density / 10000.f);
glFogfv(GL_FOG_COLOR, glColor);

shitpasted but i think you are understand what needs

oxiKKK commented 1 year ago

Gotcha. I will implement this.

oxiKKK commented 1 year ago

Implemented in d39fdee.

image