Class EnvironmentMapModel

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

public final class EnvironmentMapModel extends Object implements AutoCloseable
Immutable set of parameters that describe the EnvironmentMapEffect: the environment imagery wrapped around a 3D scene, in two independent roles.

This environment-map model has 2 parameters:

  • the skybox is background imagery seen in all directions. A null value means no skybox.
  • the reflection map is the environment that physically based rendering (PBR) objects reflect and are lit by. The default is a neutral gray map, so PBR content is lit out of the box. A null value removes the image-based lighting.

Create one with EnvironmentMapModel#newBuilder, or start from an existing model with asBuilder, and apply it with EnvironmentMapEffect#setModel.

Since:
2026.1
  • Method Details

    • finalize

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

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

      @NotNull public static EnvironmentMapModel.Builder newBuilder()
      Creates a new builder with the default environment-map parameters.
      Returns:
      a new builder.
    • asBuilder

      @NotNull public EnvironmentMapModel.Builder asBuilder()
      Creates a builder pre-filled with this model's parameters.
      Returns:
      a builder pre-filled with this model's parameters.
    • getSkybox

      @Nullable public EnvironmentMap getSkybox()
      Returns the skybox, or null when no skybox is set.
      Returns:
      the skybox, or null when no skybox is set.
    • getReflectionMap

      @Nullable public EnvironmentMap getReflectionMap()
      Returns the reflection map, or null when image-based lighting is disabled.
      Returns:
      the reflection map, or null when image-based lighting is disabled.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object other)
      Overrides:
      equals in class Object