Class ShaderLib

渲染代码库

Hierarchy

  • ShaderLib

Constructors

Properties

_shaderCache: {
    [shaderName: string]: {
        fragment: string;
        fragmentMacroVariables: string[];
        vertex: string;
        vertexMacroVariables: string[];
    };
} = {}

Type declaration

  • [shaderName: string]: {
        fragment: string;
        fragmentMacroVariables: string[];
        vertex: string;
        vertexMacroVariables: string[];
    }
    • fragment: string
    • fragmentMacroVariables: string[]
    • vertex: string
    • vertexMacroVariables: string[]
_shaderConfig: ShaderConfig

Accessors

Methods

  • 获取shaderCode

    Parameters

    • shaderName: string

    Returns {
        fragment: string;
        fragmentMacroVariables: string[];
        vertex: string;
        vertexMacroVariables: string[];
    }

    • fragment: string
    • fragmentMacroVariables: string[]
    • vertex: string
    • vertexMacroVariables: string[]

Generated using TypeDoc