Bitbybit Docs
    Preparing search index...
    Index

    Constructors

    • Parameters

      • OptionaldecalMap: MeshUVSpaceRenderer
      • Optionaltexture: BaseTexture
      • Optionalposition: Point3
      • Optionalnormal: Vector3
      • Optionalsize: Vector3
      • Optionalangle: number

      Returns ProjectDecalDto

    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: 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