Variable MESH_DEFAULTSConst
MESH_DEFAULTS: {
ambient: 0.25;
shadeExponent: 1.5;
specular: 0.12;
shininess: 24;
alphaCutoff: 0.5;
} = ...
Type Declaration
-
Readonlyambient: 0.25
-
ReadonlyshadeExponent: 1.5
-
Readonlyspecular: 0.12
-
Readonlyshininess: 24
-
ReadonlyalphaCutoff: 0.5
Mesh material defaults.
ambient/shadeExponentparameterize the §6.2 wrapped diffuse term, whilespecular/shininessparameterize its additive Blinn–Phong highlight:ambientis the shade floor. It is what a surface facing away from the key light keeps, so it is what makes a silhouette readable rather than black.1.0collapses the diffuse gradient; setspecular = 0.0as well for a fully emissive look.shadeExponentshapes the falloff between the head-on and edge-on extremes.1.0is the plain linear wrap.specularis the highlight strength.0.0disables it.shininesscontrols highlight width; larger values make it tighter.alphaCutoffis theopaque-mode cutout threshold (§6.2).0.5is the conventional alpha-test midpoint, and — because node opacity folds INTO the coverage that is compared against it — it also fixes where a plain RGB mesh (whosevAlphais identically 1) dissolves asopacitysweeps down: at 0.5.