Fix Volumetric Fog particle material CB0 binding issue

This commit is contained in:
2021-05-17 13:51:14 +02:00
parent 0a25b71437
commit 5a7efe9019
4 changed files with 6 additions and 8 deletions
Binary file not shown.
@@ -537,11 +537,8 @@ bool GPUDeviceDX11::Init()
#undef CREATE_DEPTH_STENCIL_STATE
}
_state
=
DeviceState::Ready;
return
GPUDeviceDX::Init();
_state = DeviceState::Ready;
return GPUDeviceDX::Init();
}
GPUDeviceDX11::~GPUDeviceDX11()
@@ -572,6 +572,7 @@ void VolumetricFogPass::Render(RenderContext& renderContext)
}
context->ResetRenderTarget();
context->BindCB(0, cb0);
}
// Render Lights
+1 -1
View File
@@ -50,7 +50,7 @@ float4 FogParameters;
float4x4 PrevWorldToClip;
float4 FrameJitterOffsets[8];
float4 FrameJitterOffsets[8];
LightData DirectionalLight;
LightShadowData DirectionalLightShadow;