Package com.luciad.maps.effects
Class EnvironmentMapModel.Builder
java.lang.Object
com.luciad.maps.effects.EnvironmentMapModel.Builder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
EnvironmentMapModel
Builder for an EnvironmentMapModel.- Since:
- 2026.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the environment-map model.voidclose()protected voidfinalize()reflectionMap(EnvironmentMap reflectionMap) Sets the reflection map that physically based rendering (PBR) objects reflect and are lit by.skybox(EnvironmentMap skybox) Sets the skybox: background imagery seen in all directions.
-
Constructor Details
-
Builder
Copy constructor.- Parameters:
other- the builder to copy.
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
skybox
Sets the skybox: background imagery seen in all directions.The default is
null(no skybox).High-resolution imagery is recommended, because the skybox fills the entire background. When set, the skybox takes priority over the
AtmosphereEffect.- Parameters:
skybox- the skybox, ornullfor no skybox.- Returns:
- this builder.
-
reflectionMap
Sets the reflection map that physically based rendering (PBR) objects reflect and are lit by.The default is a neutral gray map, so PBR content is lit by image-based lighting out of the box. Pass
nullto remove it and get the raw, direct-only look. A lower-resolution but ideally HDR image is recommended.- Parameters:
reflectionMap- the reflection map, ornullto disable image-based lighting.- Returns:
- this builder.
-
build
Builds the environment-map model.- Returns:
- the built environment-map model.
-