2026-04-20 22:46:19 +08:00
|
|
|
namespace XCEngine.Rendering
|
|
|
|
|
{
|
|
|
|
|
public struct DrawingSettings
|
|
|
|
|
{
|
|
|
|
|
public string overrideMaterialPath;
|
2026-04-20 22:58:08 +08:00
|
|
|
public string shaderPassName;
|
2026-04-20 22:46:19 +08:00
|
|
|
|
|
|
|
|
public bool hasOverrideMaterial =>
|
|
|
|
|
!string.IsNullOrEmpty(
|
|
|
|
|
overrideMaterialPath);
|
|
|
|
|
|
2026-04-20 22:58:08 +08:00
|
|
|
public bool hasShaderPassName =>
|
|
|
|
|
!string.IsNullOrEmpty(
|
|
|
|
|
shaderPassName);
|
|
|
|
|
|
2026-04-20 22:46:19 +08:00
|
|
|
public static DrawingSettings CreateDefault()
|
|
|
|
|
{
|
|
|
|
|
return new DrawingSettings
|
|
|
|
|
{
|
2026-04-20 22:58:08 +08:00
|
|
|
overrideMaterialPath = string.Empty,
|
|
|
|
|
shaderPassName = string.Empty
|
2026-04-20 22:46:19 +08:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|