three-nebula API
    Preparing search index...

    Class Texture

    Sets the body property to be a THREE.Sprite with a texture map on initialized particles.

    Hierarchy

    • default
      • Texture
    Index
    • Constructs an Texture initializer.

      Parameters

      • THREE: __module

        The Web GL API we are using eg., THREE

      • OptionalloadedTexture: Texture<unknown, TextureEventMap>

        Preloaded THREE.Texture instance

      • materialProperties: Record<string, unknown> = DEFAULT_MATERIAL_PROPERTIES

        The sprite material properties

      • isEnabled: boolean = true

      Returns Texture

    isEnabled: boolean
    material: SpriteMaterial
    materialProperties: Record<string, unknown>
    sprite: Sprite
    texture?: Texture<unknown, TextureEventMap>
    type: string
    • Creates a Texture initializer from JSON.

      Parameters

      • json: TextureJSON

        The JSON to construct the instance from

      • THREE: __module

        The Web GL API we are using eg., THREE

      Returns Texture

    • Determines if the initializer requires a WebGL API to be provided to its constructor.

      Returns boolean