Skip to content

@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 ​

PropertyTypeDescriptionDefined in
texturesTHREE.Texture[]-terrain/impostor.ts:15
targetsTHREE.RenderTarget[]-terrain/impostor.ts:16
widthnumber-terrain/impostor.ts:17
heightnumber-terrain/impostor.ts:18
bottomnumber-terrain/impostor.ts:19
materialsTHREE.MeshBasicMaterial[]One material per direction, shared by every chunk.terrain/impostor.ts:21
geometryTHREE.PlaneGeometry-terrain/impostor.ts:22