Fix some warnings
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, macos-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled

This commit is contained in:
2026-05-17 13:57:55 -07:00
parent 14ae31dd2c
commit 3e60fdd48a
24 changed files with 89 additions and 78 deletions

View File

@@ -246,8 +246,9 @@ bool KRRenderSettings::getShaderValue(ShaderValue value, float* output) const
case ShaderValue::density_premultiplied_squared:
*output = (float)(-fog_density * fog_density * 1.442695); // -fog_density * fog_density / log(2)
return true;
default:
return false;
}
return false;
}
bool KRRenderSettings::getShaderValue(ShaderValue value, Vector3* output) const
@@ -256,6 +257,7 @@ bool KRRenderSettings::getShaderValue(ShaderValue value, Vector3* output) const
case ShaderValue::fog_color:
*output = fog_color;
return true;
default:
return false;
}
return false;
}