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
|
#undef CREATE_DEPTH_STENCIL_STATE
|
||||||
}
|
}
|
||||||
|
|
||||||
_state
|
_state = DeviceState::Ready;
|
||||||
=
|
return GPUDeviceDX::Init();
|
||||||
DeviceState::Ready;
|
|
||||||
return
|
|
||||||
GPUDeviceDX::Init();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GPUDeviceDX11::~GPUDeviceDX11()
|
GPUDeviceDX11::~GPUDeviceDX11()
|
||||||
|
|||||||
@@ -572,6 +572,7 @@ void VolumetricFogPass::Render(RenderContext& renderContext)
|
|||||||
}
|
}
|
||||||
|
|
||||||
context->ResetRenderTarget();
|
context->ResetRenderTarget();
|
||||||
|
context->BindCB(0, cb0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Render Lights
|
// Render Lights
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ float4 FogParameters;
|
|||||||
|
|
||||||
float4x4 PrevWorldToClip;
|
float4x4 PrevWorldToClip;
|
||||||
|
|
||||||
float4 FrameJitterOffsets[8];
|
float4 FrameJitterOffsets[8];
|
||||||
|
|
||||||
LightData DirectionalLight;
|
LightData DirectionalLight;
|
||||||
LightShadowData DirectionalLightShadow;
|
LightShadowData DirectionalLightShadow;
|
||||||
|
|||||||
Reference in New Issue
Block a user