Bitbybit Docs
    Preparing search index...

    Class ProjectDecalDto (Inputs.BabylonDecal)

    babylon.decal.projectDecal 使用:要绘制到的贴花贴图、图像,以及投影的位置、方向和大小。

    Index

    Constructors

    • Parameters

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

      Returns ProjectDecalDto

    Properties

    decalMap: MeshUVSpaceRenderer

    在网格上启用贴花贴图后得到的贴花贴图渲染器。投影的贴花会在其中累积。

    undefined
    
    texture: BaseTexture

    要投影到网格 UV 空间中的图像纹理。

    undefined
    
    position: Point3

    投影器在世界坐标中的位置。

    [0, 0, 0]
    
    normal: Vector3

    世界坐标中的投影方向,通常是投影点处的表面法线。

    [0, 1, 0]
    
    size: Vector3

    投影盒在每个轴上的大小。

    [1, 1, 1]
    
    angle: number

    投影绕投影方向旋转的角度,以弧度为单位。

    0
    

    0.1