Capítulo 554 de 859

Chapter 554: GroundedSkybox

Core Idea

A ground-projected skybox.

By default the object is centered at the camera, so it is often helpful to set skybox.position.y = height to put the ground at the origin.

Code Examples

const height = 15, radius = 100;
const skybox = new GroundedSkybox( envMap, height, radius );
skybox.position.y = height;
scene.add( skybox );
  • What it demonstrates: Typical usage of GroundedSkybox.

Reference Tables

Constructor

Signature
new GroundedSkybox( map : Texture, height : number, radius : number, resolution : number )

Key Takeaways

  1. GroundedSkybox extends: EventDispatcher → Object3D → Mesh

Connects To