Small World Engine API Reference - v0.46.1
    Preparing search index...

    Interface ShaderLayout

    Defines the requirements of a shader.

    interface ShaderLayout {
        textures: Record<string, ShaderPropertyMetadata>;
        uniformLayout?: string[];
        uniforms: Record<string, ShaderPropertyMetadata>;
    }
    Index

    Properties

    textures: Record<string, ShaderPropertyMetadata>

    Map of texture names to their metadata.

    uniformLayout?: string[]

    Explicit order of uniforms in the buffer for automated packing. If provided, the renderer can automatically pack data into buffers.

    uniforms: Record<string, ShaderPropertyMetadata>

    Map of uniform names to their metadata.