Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,7 @@ bool CanUseRasterPass(UniversalCameraData cameraData)
var system = Effekseer.EffekseerSystem.Instance;
return Effekseer.EffekseerSettings.Instance.enableURPRasterPass &&
system != null &&
system.CanUseURPRasterPass &&
!cameraData.xrRendering;
(cameraData.xrRendering ? system.CanUseURPRasterPassInXR : system.CanUseURPRasterPass);
}

public override void RecordRenderGraph(RenderGraph renderGraph, ContextContainer frameData)
Expand Down
12 changes: 12 additions & 0 deletions Dev/Plugin/Assets/Effekseer/Scripts/EffekseerSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,18 @@ public bool CanUseURPRasterPass
}
}

/// <summary>
/// Whether the URP raster pass can be used for XR cameras.
/// The native renderer is not allowed because it has not been tested in XR.
/// </summary>
public bool CanUseURPRasterPassInXR
{
get
{
return RendererType == EffekseerRendererType.Unity && CanUseURPRasterPass;
}
}

private static CachedTextureContainer cachedTextures = new CachedTextureContainer();

private static CachedModelContainer cachedModels = new CachedModelContainer();
Expand Down
Loading