Fix Volumetric Fog particle material CB0 binding issue
This commit is contained in:
BIN
Content/Shaders/VolumetricFog.flax
(Stored with Git LFS)
BIN
Content/Shaders/VolumetricFog.flax
(Stored with Git LFS)
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
|
||||
|
||||
@@ -50,7 +50,7 @@ float4 FogParameters;
|
||||
|
||||
float4x4 PrevWorldToClip;
|
||||
|
||||
float4 FrameJitterOffsets[8];
|
||||
float4 FrameJitterOffsets[8];
|
||||
|
||||
LightData DirectionalLight;
|
||||
LightShadowData DirectionalLightShadow;
|
||||
|
||||
Reference in New Issue
Block a user