fogHeight is not needed in the shader
This commit is contained in:
committed by
Mathias Agopian
parent
3e29b6e443
commit
8aa1435fbd
@@ -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;
|
||||
|
||||
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user