From 446c31b622ffe4f04620d5e267a97e4eb1e97906 Mon Sep 17 00:00:00 2001 From: Graham Pentheny Date: Sun, 24 Aug 2025 17:13:44 -0400 Subject: [PATCH] rename fogColor to FOG_COLOR --- RecastDemo/Source/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RecastDemo/Source/main.cpp b/RecastDemo/Source/main.cpp index 9a2acaf4..4dfdfde6 100644 --- a/RecastDemo/Source/main.cpp +++ b/RecastDemo/Source/main.cpp @@ -54,7 +54,7 @@ struct SampleItem namespace { constexpr float UPDATE_TIME = 1.0f / 60.0f; // update at 60Hz -constexpr float fogColor[4] = {0.32f, 0.31f, 0.30f, 1.0f}; +constexpr float FOG_COLOR[4] = {0.32f, 0.31f, 0.30f, 1.0f}; SampleItem g_samples[] = { {.name = "Solo Mesh", .create = []() { return std::make_unique(); } }, @@ -143,7 +143,7 @@ int main(int /*argc*/, char** /*argv*/) glFogi(GL_FOG_MODE, GL_LINEAR); glFogf(GL_FOG_START, app.camr * 0.1f); glFogf(GL_FOG_END, app.camr * 1.25f); - glFogfv(GL_FOG_COLOR, fogColor); + glFogfv(GL_FOG_COLOR, FOG_COLOR); // OpenGL settings glEnable(GL_CULL_FACE);