Divooka Reference

Material Layers

2 nodes

On this page 2

Layer

Function

A 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: Number
MaterialLayer Layer(
    PbrMaterial material,
    Texture mask,
    double opacity = 1)

Parameters

nametypedefaultdescription
materialPBR Material—The layer's material.
maskTexture—Where it shows; optional, everywhere when absent.
opacityNumber1How strongly it shows, 0 to 1.

Returns

resultMaterial Layer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Material Layers
Package
Image Processing

Layer Stack

Function

Lays 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 Array
PbrMaterial LayerStack(
    PbrMaterial baseMaterial,
    MaterialLayer[] layers)

Parameters

nametypedefaultdescription
baseMaterialPBR Material—The bottom of the stack.
layersMaterial Layer Array—The layers, bottom to top.

Returns

resultPBR Material
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Material Layers
Package
Image Processing