Renderer · interface
GlobalFieldInstance
Explained in Hello world.
interface GlobalFieldInstanceimport type { GlobalFieldInstance } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
sourcereadonly | FieldSource | |
albedoreadonlyoptional | Vec3 | What colour this instance's surface is, or white where it did not say.MoreOn the instance rather than the source, because the same baked field is placed many times and two pillars cut from one mould may be painted differently. Optional so that every caller written before the trace needed a colour is unchanged. |
transformreadonly | ReadonlyMat4 | World from object.MoreUniform scale only, and |