Class EnvironmentMap.CubeMapBuilder

java.lang.Object
com.luciad.maps.effects.EnvironmentMap.CubeMapBuilder
All Implemented Interfaces:
AutoCloseable
Enclosing class:
EnvironmentMap

public static final class EnvironmentMap.CubeMapBuilder extends Object implements AutoCloseable
Builder for an EnvironmentMap from six cubemap faces.

All six faces are mandatory and must be square and equally sized. The faces are uploaded directly into a GPU cube texture, which requires square faces of matching dimensions. Non-square or differently sized faces are not supported.

The faces make up the six sides of a cube centered on the camera. Each face image is oriented as you would see it looking outward at that side, with orientation 0 (north) pointing along the front face. Unfolded, the faces lay out as the following cross:

 +--------+
              |  top   |
     +--------+--------+--------+--------+
     |  left  | front  | right  |  back  |
     +--------+--------+--------+--------+
              | bottom |
              +--------+
 
At orientation 0, the faces map to world directions as: front = north, right = east, back = south, left = west, top = up, bottom = down.
Since:
2026.1