fogHeight is not needed in the shader

This commit is contained in:
Mathias Agopian
2023-05-16 12:42:59 -07:00
committed by Mathias Agopian
parent 3e29b6e443
commit 8aa1435fbd
3 changed files with 2 additions and 3 deletions
-1
View File
@@ -137,7 +137,6 @@ void PerViewUniforms::prepareFog(float3 const& cameraPosition, FogOptions const&
auto& s = mUniforms.edit();
s.fogStart = options.distance;
s.fogMaxOpacity = options.maximumOpacity;
s.fogHeight = options.height;
s.fogHeightFalloff = heightFalloff;
s.fogCutOffDistance = options.cutOffDistance;
s.fogColor = options.color;
@@ -138,7 +138,7 @@ struct PerViewUib { // NOLINT(cppcoreguidelines-pro-type-member-init)
math::float3 fogDensity; // { density, -falloff * yc, density * exp(-fallof * yc) }
float fogStart;
float fogMaxOpacity;
float fogHeight;
float fogReserved0;
float fogHeightFalloff;
float fogCutOffDistance;
math::float3 fogColor;
+1 -1
View File
@@ -120,7 +120,7 @@ BufferInterfaceBlock const& UibGenerator::getPerViewUib() noexcept {
{ "fogDensity", 0, Type::FLOAT3,Precision::HIGH, FeatureLevel::FEATURE_LEVEL_0 },
{ "fogStart", 0, Type::FLOAT, Precision::HIGH, FeatureLevel::FEATURE_LEVEL_0 },
{ "fogMaxOpacity", 0, Type::FLOAT, Precision::DEFAULT, FeatureLevel::FEATURE_LEVEL_0 },
{ "fogHeight", 0, Type::FLOAT, Precision::HIGH, FeatureLevel::FEATURE_LEVEL_0 },
{ "fogReserved0", 0, Type::FLOAT },
{ "fogHeightFalloff", 0, Type::FLOAT, Precision::HIGH, FeatureLevel::FEATURE_LEVEL_0 },
{ "fogCutOffDistance", 0, Type::FLOAT, Precision::HIGH, FeatureLevel::FEATURE_LEVEL_0 },
{ "fogColor", 0, Type::FLOAT3, Precision::DEFAULT, FeatureLevel::FEATURE_LEVEL_0 },