SurfaceMaterial

interface SurfaceMaterial

One deposit: what it reflects, and how it takes the light.

terrainPalette.ts:37

Members

albedoreadonly

albedo: LinearRgb

Diffuse reflectance, linear, before the mineral tint.

bumpreadonly

bump: number

How strongly it perturbs the normal below the mesh's own resolution.

grainreadonly

grain: number

How strongly the detail field mottles the albedo, 0..1.

roughnessreadonly

roughness: number

Microfacet roughness. 1 is a powder; rock is near it.