Bitbybit Docs
    Preparing search index...

    Class ProjectDecalDto (Inputs.BabylonDecal)

    Feeds babylon.decal.projectDecal: the decal map to paint into, the image and where, which way and how big it is projected.

    Index

    Constructors

    Properties

    decalMap: MeshUVSpaceRenderer

    Decal map renderer obtained from enabling a decal map on a mesh. Projected decals accumulate into it.

    undefined
    
    texture: BaseTexture

    Image texture to project into the mesh UV space.

    undefined
    
    position?: Bit.Inputs.Base.Point3

    Position of the projector in world coordinates.

    [0, 0, 0]
    
    normal?: Vector3

    Projection direction in world coordinates, usually the surface normal at the projection point.

    [0, 1, 0]
    
    size?: Vector3

    Size of the projection box on each axis.

    [1, 1, 1]
    
    angle?: number

    Angle to rotate the projection around the projection direction, in radians.

    0
    

    0.1