Chemistry · interface
AppearanceModel
§17's three numbers: what a material looks like before it burns, after it burns, and how dirty
its smoke is on the way.
Explained in Chemistry.
interface AppearanceModelimport type { AppearanceModel } from '@driftengine/chemistry';In depth
Soot yield belongs on the substance and §8.4 says why: polystyrene sooting heavily and
methanol burning invisibly are the two ends of a scale, and which end a fuel sits at is a property
of the fuel. It is the one number that decides whether a fire is seen at all in daylight.
Properties
| Name | Type | Description |
|---|---|---|
albedoreadonly | readonly [number, number, number] | Linear RGB before anything happens to it. |
charAlbedoreadonly | readonly [number, number, number] | Linear RGB when it is entirely char. Near-black for anything that chars at all. |
sootYieldreadonly | number | kg of soot per kg of volatiles burnt. Wood is about 0.015; polystyrene is 0.16. |