- add a managed DrawingSettings seam for scene draw authoring - let builtin forward scene draws use an override material when provided - wire DrawObjectsPass and RenderObjectsRendererFeature through the new settings
20 lines
436 B
C#
20 lines
436 B
C#
namespace XCEngine.Rendering
|
|
{
|
|
public struct DrawingSettings
|
|
{
|
|
public string overrideMaterialPath;
|
|
|
|
public bool hasOverrideMaterial =>
|
|
!string.IsNullOrEmpty(
|
|
overrideMaterialPath);
|
|
|
|
public static DrawingSettings CreateDefault()
|
|
{
|
|
return new DrawingSettings
|
|
{
|
|
overrideMaterialPath = string.Empty
|
|
};
|
|
}
|
|
}
|
|
}
|