2026-04-19 14:42:57 +08:00
|
|
|
using XCEngine;
|
|
|
|
|
using XCEngine.Rendering;
|
|
|
|
|
|
|
|
|
|
namespace XCEngine.Rendering.Universal
|
|
|
|
|
{
|
2026-04-19 15:20:34 +08:00
|
|
|
public static class CameraRenderRequestContextExtensions
|
2026-04-19 14:42:57 +08:00
|
|
|
{
|
|
|
|
|
public static bool HasDirectionalShadow(
|
2026-04-19 15:20:34 +08:00
|
|
|
this CameraRenderRequestContext context)
|
2026-04-19 14:42:57 +08:00
|
|
|
{
|
|
|
|
|
return context != null &&
|
|
|
|
|
InternalCalls
|
2026-04-19 15:20:34 +08:00
|
|
|
.Rendering_CameraRenderRequestContext_GetHasDirectionalShadow(
|
2026-04-19 14:42:57 +08:00
|
|
|
context.nativeHandle);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void ClearDirectionalShadow(
|
2026-04-19 15:20:34 +08:00
|
|
|
this CameraRenderRequestContext context)
|
2026-04-19 14:42:57 +08:00
|
|
|
{
|
|
|
|
|
if (context == null)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
InternalCalls
|
2026-04-19 15:20:34 +08:00
|
|
|
.Rendering_CameraRenderRequestContext_ClearDirectionalShadow(
|
2026-04-19 14:42:57 +08:00
|
|
|
context.nativeHandle);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|