Bitbybit Docs
    Preparing search index...

    Class BabylonTexture

    Index

    Constructors

    create

    • Creates texture from URL from a few basic options. If you loaded the asset via the file, create object url and pass it here.

      Parameters

      Returns Texture

      Babylon texture that can be used with materials

      simple texture

      true

    • Creates an image texture intended for decals and projections. Wrap modes are clamped so the image is not tiled, and the alpha channel is respected by default. Feed the result into decal creation or decal map projection.

      Parameters

      Returns Texture

      Babylon texture that can be projected onto meshes

      image texture

      true