DecalNode constructor
DecalNode({
- required PreprocessedMaterial material,
- String name = '',
Creates a decal drawn with material, unplaced until project runs.
Implementation
DecalNode({required PreprocessedMaterial material, super.name})
: _material = material {
mesh = Mesh(unitBoxGeometry(), material);
// The box is a projection volume, not geometry: it must not cast its own
// cube shadow, and a ray should reach whatever it paints.
castsShadows = false;
raycastable = false;
_writeParameters();
}