Texture Weathering
7 nodes
On this page 7
Cracks
FunctionCracks: thin dark lines branching across a surface, from the borders of a warped cellular pattern, broken so they do not close into cells. Answers a height (cracks low) and a mask (cracks white).
Cracks -> (result: Texture, mask: Texture)
scale: Integer
width: Number
coverage: Number
wander: Number
seed: Integer
size: IntegerTexture Cracks(
out Texture mask,
int scale = 5,
double width = 0.02,
double coverage = 0.6,
double wander = 0.5,
int seed = 0,
int size = 1024)Parameters
| name | type | default | description |
|---|---|---|---|
| scale | Integer | 5 | How large the crack network is: cells across the texture. |
| width | Number | 0.02 | How wide a crack is, as a share of a cell. |
| coverage | Number | 0.6 | How much of the network is cracked, 0 to 1. |
| wander | Number | 0.5 | How much the cracks wander off straight lines, 0 to 1. |
| seed | Integer | 0 | Which cracks. |
| size | Integer | 1024 | Width and height in pixels. |
Returns
| result | Texture |
| mask | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Weathering
- Package
- Image Processing
Dirt
FunctionWhere dirt gathers: white in crevices and hollows (from ambient occlusion), spread unevenly by noise.
Dirt -> Texture
ambientOcclusion: Texture
amount: Number
breakup: Number
noiseScale: Integer
contrast: Number
seed: IntegerTexture Dirt(
Texture ambientOcclusion,
double amount = 0.5,
double breakup = 0.5,
int noiseScale = 6,
double contrast = 0.4,
int seed = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| ambientOcclusion | Texture | — | The surface's ambient occlusion, dark in crevices. |
| amount | Number | 0.5 | How far the dirt spreads, 0 to 1. |
| breakup | Number | 0.5 | How much noise breaks it up, 0 to 1. |
| noiseScale | Integer | 6 | The noise's scale: cells across the texture. |
| contrast | Number | 0.4 | How hard its edge is, 0 to 1. |
| seed | Integer | 0 | Which noise. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Weathering
- Package
- Image Processing
Edge Wear
FunctionWhere edges are worn: white along convex edges and corners, broken up by noise. Paint chipped off metal, polish on stone.
EdgeWear -> Texture
curvature: Texture
amount: Number
breakup: Number
noiseScale: Integer
contrast: Number
seed: IntegerTexture EdgeWear(
Texture curvature,
double amount = 0.5,
double breakup = 0.6,
int noiseScale = 8,
double contrast = 0.7,
int seed = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| curvature | Texture | — | The surface's curvature, bright on edges (from Curvature, or baked). |
| amount | Number | 0.5 | How far the wear spreads, 0 to 1. |
| breakup | Number | 0.6 | How much noise breaks the wear's edge, 0 to 1. |
| noiseScale | Integer | 8 | The noise's scale: cells across the texture. |
| contrast | Number | 0.7 | How hard the wear's edge is, 0 to 1. |
| seed | Integer | 0 | Which noise. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Weathering
- Package
- Image Processing
Grunge
FunctionA ready-made grunge map: an irregular greyscale for breaking up roughness, colour or any mask so a surface does not look new.
Grunge -> Texture
kind: Grunge Kind
seed: Integer
size: IntegerTexture Grunge(
GrungeKind kind = GrungeKind.Mottled,
int seed = 0,
int size = 1024)Parameters
| name | type | default | description |
|---|---|---|---|
| kind | Grunge Kind | Mottled | Which kind of grunge. |
| seed | Integer | 0 | Which random variation. |
| size | Integer | 1024 | Width and height in pixels. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Weathering
- Package
- Image Processing
Leaks
FunctionStreaks running down from a mask's lower edges, as rain leaves under window sills and rust runs from bolts. With no source, streaks start anywhere.
Leaks -> Texture
source: Texture
length: Number
density: Number
seed: Integer
size: IntegerTexture Leaks(
Texture source,
double length = 0.3,
double density = 0.5,
int seed = 0,
int size = 1024)Parameters
| name | type | default | description |
|---|---|---|---|
| source | Texture | — | Where leaks start, white; optional. |
| length | Number | 0.3 | How far they run, as a share of the texture's height. |
| density | Number | 0.5 | How many streaks, 0 to 1. |
| seed | Integer | 0 | Which streaks. |
| size | Integer | 1024 | Width and height in pixels, when there is no source. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Weathering
- Package
- Image Processing
Scratches
FunctionScratches: thin straight strokes scattered across a surface, mostly in one direction or every which way.
Scratches -> Texture
count: Integer
length: Number
width: Number
angleRandom: Number
seed: Integer
size: IntegerTexture Scratches(
int count = 300,
double length = 0.15,
double width = 0.02,
double angleRandom = 1,
int seed = 0,
int size = 1024)Parameters
| name | type | default | description |
|---|---|---|---|
| count | Integer | 300 | How many scratches. |
| length | Number | 0.15 | How long a scratch is, as a share of the texture. |
| width | Number | 0.02 | How thick a scratch is, as a share of its length. |
| angleRandom | Number | 1 | How far scratches stray from one direction, 0 (all parallel) to 1 (any). |
| seed | Integer | 0 | Which scratches. |
| size | Integer | 1024 | Width and height in pixels. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Weathering
- Package
- Image Processing
Water Level
FunctionWater standing in the low places of a height: white where the surface is below the level, with a soft shoreline. Puddles on cobbles, water in mortar, a flooded floor.
WaterLevel -> (result: Texture, flattened: Texture)
height: Texture
level: Number
shoreline: NumberTexture WaterLevel(
Texture height,
out Texture flattened,
double level = 0.3,
double shoreline = 0.04)Parameters
| name | type | default | description |
|---|---|---|---|
| height | Texture | — | The surface's height. |
| level | Number | 0.3 | The water's level, 0 to 1. |
| shoreline | Number | 0.04 | How soft the water's edge is. |
Returns
| result | Texture |
| flattened | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Weathering
- Package
- Image Processing