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

    Class ShaderRegistry

    Central registry for shader definitions.

    Index

    Accessors

    Methods

    • Processes a shader source and replaces all chunk placeholders. Placeholders are formatted as: [CHUNK_ID]

      Parameters

      • source: string

        The shader source code.

      • lang: ShaderLanguage

        The language to use for chunks.

      Returns string

      The source code with all placeholders replaced.