@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / Impostor
Type Alias: Impostor ​
ts
type Impostor = {
textures: THREE.Texture[];
targets: THREE.RenderTarget[];
width: number;
height: number;
bottom: number;
materials: THREE.MeshBasicMaterial[];
geometry: THREE.PlaneGeometry;
};Defined in: terrain/impostor.ts:14
Pictures of a model from all round, for drawing it as a flat card far away. One small texture per direction (no atlas, so no renderer-specific shader picks the frame: a chunk of cards just uses the picture nearest its view). width and height are the card's size in the model's units; bottom is where its base sits.
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
textures | THREE.Texture[] | - | terrain/impostor.ts:15 |
targets | THREE.RenderTarget[] | - | terrain/impostor.ts:16 |
width | number | - | terrain/impostor.ts:17 |
height | number | - | terrain/impostor.ts:18 |
bottom | number | - | terrain/impostor.ts:19 |
materials | THREE.MeshBasicMaterial[] | One material per direction, shared by every chunk. | terrain/impostor.ts:21 |
geometry | THREE.PlaneGeometry | - | terrain/impostor.ts:22 |

