Optional
angle?: numberOptional
captureUVS?: booleantrue
: Use UV mapping from source meshfalse
: Use default box mapping from the decal
Default false
Optional
cullCreate decal only on front side if set to true
Default true
Optional
localtrue
: Sets created decal as child of source mesh
Default true
Optional
normal?: Tuple<number, 3>Default [0, 0, 1]
(forward direction)
Optional
offset?: numberShifts decals away from source mesh in direction of "normal" vector
Default 0.001
(1mm)
Optional
scaling?: Tuple<number, 3>Can be used for shifting the decal away from the source mesh as alternative to offset
.
Use this setting when the offset should be applied in radial direction (e.g. cylinders)
Default [1, 1, 1]
(no offset through scaling)
Optional
sideThe Babylon.js default for mesh side orientation value is Material.CounterClockWiseSideOrientation
.
However if the mesh (in this case the created decal mesh) is located under a glTF root node, it has to be flipped,
using Material.ClockWiseSideOrientation
.
Default Material.ClockWiseSideOrientation
Generated using TypeDoc
Default
0