メインコンテンツまでスキップ

Class YauiShaderModules

The shader modules of the project (Yaui.YauiShaderSettings) at runtime.

Assembly: Yaui.dll​
View Source​
Declaration
public static class YauiShaderModules

Properties​

UberShader​

The generated uber shader, or null to use YAUI's own.

View Source​
Declaration
public static Shader UberShader { get; }

Methods​

IdOf(string)​

The id of the module with <code class="paramref">key</code> (1..31) for Yaui.YauiPrimitive.WithModule(int), or 0 if the project does not use it or has no generated uber shader. Code that gets 0 draws without the module, for example with a material of its own.

View Source​
Declaration
public static int IdOf(string key)
Returns​

System.Int32

Parameters​
TypeName
System.Stringkey