Fix sky color being too dark
This commit is contained in:
@@ -99,7 +99,11 @@ void Sky::Draw(RenderContext& renderContext)
|
||||
psDesc.CullMode = CullMode::Inverted;
|
||||
psDesc.DepthWriteEnable = false;
|
||||
psDesc.DepthClipEnable = false;
|
||||
#if FLAX_REVERSE_Z
|
||||
psDesc.DepthFunc = ComparisonFunc::GreaterEqual;
|
||||
#else
|
||||
psDesc.DepthFunc = ComparisonFunc::LessEqual;
|
||||
#endif
|
||||
|
||||
if (_psSky->Init(psDesc))
|
||||
{
|
||||
|
||||
@@ -34,7 +34,11 @@ MaterialInput VS(ModelInput_PosOnly input)
|
||||
output.ScreenPos = output.Position;
|
||||
|
||||
// Place pixels on the far plane
|
||||
output.Position = output.Position.xyzz;
|
||||
#if FLAX_REVERSE_Z
|
||||
output.Position.z = 0;
|
||||
#else
|
||||
output.Position.z = output.Position.w;
|
||||
#endif
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user