diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-03-24 00:51:17 +0900 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-03-24 00:51:17 +0900 |
| commit | cd9c07e8a0a816fffdd63c9b92a1a5c1e8f32907 (patch) | |
| tree | afc2b0c4b962611c1d74aabf75d85cf3c5c4761f /src/GameInitDispose.cpp | |
| parent | d6b01c488256398f0e5ef7af0f12ada87685cf76 (diff) | |
| download | blackshades-cd9c07e8a0a816fffdd63c9b92a1a5c1e8f32907.tar.gz | |
Convert fog effect to Zig
Diffstat (limited to 'src/GameInitDispose.cpp')
| -rw-r--r-- | src/GameInitDispose.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GameInitDispose.cpp b/src/GameInitDispose.cpp index 6573008..d4319b5 100644 --- a/src/GameInitDispose.cpp +++ b/src/GameInitDispose.cpp @@ -978,7 +978,7 @@ void initGame(Game* game) bodyguard.attackframe = -1; game->spawndelay = 0; - fog.SetFog(fogcolorr, fogcolorg, fogcolorb, 0, + setFog(&fog, fogcolorr, fogcolorg, fogcolorb, 0, game->viewdistance * 0.8f, 0.1f); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); |
