@masatomakino/threejs-billboard
    Preparing search index...

    Interface TextureArea

    Defines a rectangular area within a texture using pixel coordinates.

    This interface represents a rectangular region of a SharedStageTexture that will be displayed on a billboard or plane mesh. Coordinates use a standard 2D coordinate system with (0,0) at the top-left.

    // Define a 256x256 area starting at position (100, 50)
    const textureArea: TextureArea = {
    x: 100,
    y: 50,
    width: 256,
    height: 256
    };

    // Use with SharedStageBillboard
    const billboard = new SharedStageBillboard(sharedMaterial, textureArea);
    interface TextureArea {
        height: number;
        width: number;
        x: number;
        y: number;
    }
    Index

    Properties

    Properties

    height: number

    Height of the area in pixels

    width: number

    Width of the area in pixels

    x: number

    X coordinate of the top-left corner in pixels

    y: number

    Y coordinate of the top-left corner in pixels