Editor.Assets.ShaderType
EnumEnum of shader type categories.
Index
Enumeration Members
Example
const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
const assetManager = model.project.assetManager;
// Each Material holds one or more "passes" — each pass is a rendering
// pipeline configuration (vertex/fragment shaders + render state).
// pass.uiData.shaderType identifies which built-in pipeline the pass was
// authored against (Mesh3d, PostEffect, Hair, GaussianSplatting, …) so
// the inspector can show the correct UI. It comes from the shader graph
// template the artist used and is read-only here.
const materials = assetManager.assets.filter(a => a.isOfType('Material')) as Editor.Assets.Material[];
for (const mat of materials) {
for (const pass of mat.passInfos) {
const shaderType = pass.uiData.shaderType;
let label = 'Unknown';
if (shaderType === Editor.Assets.ShaderType.Mesh3d) label = 'Mesh3d';
else if (shaderType === Editor.Assets.ShaderType.PostEffect) label = 'PostEffect';
else if (shaderType === Editor.Assets.ShaderType.Hair) label = 'Hair';
else if (shaderType === Editor.Assets.ShaderType.GaussianSplatting) label = 'GaussianSplatting';
console.log(`"${mat.name}" shaderType: ${label} (${shaderType})`);
}
}
Enumeration Members
GaussianSplatting
GaussianSplatting:
number
Shader type for Gaussian splatting rendering.
Hair
Hair:
number
Shader type for hair rendering.
Mesh3d
Mesh3d:
number
Shader type for 3D mesh rendering.
PostEffect
PostEffect:
number
Shader type for post-processing effects.