Bitbybit Docs
    Preparing search index...

    Class EnableDecalMapDto (Inputs.BabylonDecal)

    babylon.decal.enableDecalMap 使用:要赋予贴花贴图的网格和材质,以及该贴图的分辨率。

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionalmesh: AbstractMesh
      • Optionalmaterial: Material
      • Optionalwidth: number
      • Optionalheight: number

      Returns EnableDecalMapDto

    Properties

    mesh: AbstractMesh

    要在其上启用 UV 空间贴花贴图的网格。网格必须具有正确、不重叠的 UV 坐标。

    undefined
    
    material: Material

    网格的材质,将在其上开启贴花贴图插件,使投影的贴花在着色器中混合。

    undefined
    
    width: number

    内部贴花贴图渲染目标的宽度,以像素为单位。

    1024
    
    height: number

    内部贴花贴图渲染目标的高度,以像素为单位。

    1024