Class EnvironmentMapModel.Builder

java.lang.Object
com.luciad.maps.effects.EnvironmentMapModel.Builder
All Implemented Interfaces:
AutoCloseable
Enclosing class:
EnvironmentMapModel

public static final class EnvironmentMapModel.Builder extends Object implements AutoCloseable
Since:
2026.1
  • Constructor Details

  • Method Details

    • finalize

      protected void finalize()
      Overrides:
      finalize in class Object
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • skybox

      @NotNull public EnvironmentMapModel.Builder skybox(@Nullable EnvironmentMap 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, or null for no skybox.
      Returns:
      this builder.
    • reflectionMap

      @NotNull public EnvironmentMapModel.Builder reflectionMap(@Nullable EnvironmentMap 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 null to remove it and get the raw, direct-only look. A lower-resolution but ideally HDR image is recommended.

      Parameters:
      reflectionMap - the reflection map, or null to disable image-based lighting.
      Returns:
      this builder.
    • build

      @NotNull public EnvironmentMapModel build()
      Builds the environment-map model.
      Returns:
      the built environment-map model.