Material Layers
2 nodes
On this page 2
Layer
FunctionA layer for a layer stack: a material shown where the mask is white, at an opacity.
Signature
Layer -> Material Layer
material: PBR Material
mask: Texture
opacity: NumberMaterialLayer Layer(
PbrMaterial material,
Texture mask,
double opacity = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| material | PBR Material | — | The layer's material. |
| mask | Texture | — | Where it shows; optional, everywhere when absent. |
| opacity | Number | 1 | How strongly it shows, 0 to 1. |
Returns
| result | Material Layer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Material Layers
- Package
- Image Processing
Layer Stack
FunctionLays layers over a base material in order, the last on top: each blends every channel - colour, height, roughness, metallic, normal - by its mask and opacity.
Signature
LayerStack -> PBR Material
baseMaterial: PBR Material
layers: Material Layer ArrayPbrMaterial LayerStack(
PbrMaterial baseMaterial,
MaterialLayer[] layers)Parameters
| name | type | default | description |
|---|---|---|---|
| baseMaterial | PBR Material | — | The bottom of the stack. |
| layers | Material Layer Array | — | The layers, bottom to top. |
Returns
| result | PBR Material |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Material Layers
- Package
- Image Processing