26 lines
869 B
C#
26 lines
869 B
C#
using XCEngine;
|
|
|
|
namespace XCEngine.Rendering.Universal
|
|
{
|
|
internal static class UniversalDefaultRendererFeatureFactory
|
|
{
|
|
public static ScriptableRendererFeature[]
|
|
CreateDefaultRendererFeatures()
|
|
{
|
|
BuiltinGaussianSplatRendererFeature gaussianSplatFeature =
|
|
ScriptableObject
|
|
.CreateInstance<BuiltinGaussianSplatRendererFeature>() ??
|
|
new BuiltinGaussianSplatRendererFeature();
|
|
BuiltinVolumetricRendererFeature volumetricFeature =
|
|
ScriptableObject
|
|
.CreateInstance<BuiltinVolumetricRendererFeature>() ??
|
|
new BuiltinVolumetricRendererFeature();
|
|
return new ScriptableRendererFeature[]
|
|
{
|
|
gaussianSplatFeature,
|
|
volumetricFeature
|
|
};
|
|
}
|
|
}
|
|
}
|