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

    Interface RenderManifest

    The RenderManifest is the "order sheet" that a material passes to the renderer to describe its requirements.

    interface RenderManifest {
        properties: Record<string, unknown>;
        shaderId: string;
        state?: {
            blending?: BlendingMode;
            culling?: CullMode;
            depthTest?: boolean;
            depthWrite?: boolean;
            isSprite?: boolean;
            topology?: Topology;
            transparent?: boolean;
        };
        textures: Record<string, Texture | CubeTexture | undefined>;
    }
    Index

    Properties

    properties: Record<string, unknown>

    The properties (uniforms) for the material. Key: Property name as defined in ShaderDefinition layout.

    shaderId: string

    The ID of the shader to use.

    state?: {
        blending?: BlendingMode;
        culling?: CullMode;
        depthTest?: boolean;
        depthWrite?: boolean;
        isSprite?: boolean;
        topology?: Topology;
        transparent?: boolean;
    }

    Optional GPU state overrides for this specific draw call.

    Type Declaration

    • Optionalblending?: BlendingMode
    • Optionalculling?: CullMode
    • OptionaldepthTest?: boolean
    • OptionaldepthWrite?: boolean
    • OptionalisSprite?: boolean

      Whether this object should be treated as a camera-facing sprite (billboarding).

    • Optionaltopology?: Topology

      The primitive topology (e.g., TRIANGLE_LIST or LINE_LIST). Defaults to TRIANGLE_LIST.

    • Optionaltransparent?: boolean
    textures: Record<string, Texture | CubeTexture | undefined>

    The textures for the material. Key: Texture name as defined in ShaderDefinition layout.