Options accepted by paintOak.

interface PaintOakOptions {
    baseWave?: number;
    color?: [number, number, number];
    normalStrength?: number;
    rings?: number;
    roughness?: number;
}

Properties

baseWave?: number

Number of base-tint sine cycles down the texture. Independent of rings; gives a low-frequency warm/cool variation. Default 5.

color?: [number, number, number]

Wood base colour. Default [0.462, 0.328, 0.210].

normalStrength?: number

heightToNormal strength. Default 1.8.

rings?: number

Number of growth-ring cycles down the texture. Default 7.

roughness?: number

Roughness centre. The output mr modulates +0..+0.18 above this on grain peaks. Default 0.55.