31 lines
719 B
C#
31 lines
719 B
C#
using XCEngine;
|
|
using XCEngine.Rendering;
|
|
|
|
namespace XCEngine.Rendering.Universal
|
|
{
|
|
public sealed class DisableDirectionalShadowRendererFeature
|
|
: ScriptableRendererFeature
|
|
{
|
|
public override void ConfigureCameraRenderRequest(
|
|
CameraRenderRequestContext context)
|
|
{
|
|
if (HasDirectionalShadow(context))
|
|
{
|
|
ClearDirectionalShadow(context);
|
|
}
|
|
}
|
|
|
|
public override void ConfigureCameraFramePlan(
|
|
ScriptableRenderPipelinePlanningContext context)
|
|
{
|
|
if (context == null)
|
|
{
|
|
return;
|
|
}
|
|
|
|
context.ClearShadowCasterStage();
|
|
}
|
|
}
|
|
}
|
|
|