Class ScyllaCoreShaderProvider
Declares the shaders the Core module resolves at runtime, so
ScyllaShaderInclusionBuildProcessor keeps them in the build: the
Scylla/Core/ shaders it authors, plus the active render pipeline's default lit shader
that ShapeMaterialCache looks up by name.
Implements
Inherited Members
Namespace: Scylla.Core.Editor
Assembly: ScyllaCore.Editor.dll
Syntax
public sealed class ScyllaCoreShaderProvider : IScyllaShaderProvider
Methods
GetExactShaderNames()
Returns exact shader names (full Shader.name) this module resolves at runtime that a
Scylla prefix does not cover, typically shaders authored outside Scylla such as the active
render pipeline's default lit shader. Each is kept in the build if it exists in the project.
Declaration
public IEnumerable<string> GetExactShaderNames()
Returns
| Type | Description |
|---|---|
| IEnumerable<string> | A sequence of exact shader names. May be empty; must not be |
Remarks
The default implementation returns an empty sequence; only modules that resolve non-Scylla shaders by name need override it. A name that matches no shader in the project (for example a pipeline that is not installed) is simply skipped, so it is safe to list every pipeline's default shader.
GetShaderNamePrefixes()
Returns the shader-name prefixes identifying this module's runtime-loaded shaders. Any
shader in the project whose Shader.name starts with one of these prefixes is kept
in the build.
Declaration
public IEnumerable<string> GetShaderNamePrefixes()
Returns
| Type | Description |
|---|---|
| IEnumerable<string> | A sequence of shader-name prefixes (for example |