Class AmbientOcclusionModel

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

public final class AmbientOcclusionModel extends Object implements AutoCloseable
Immutable set of parameters that describe the AmbientOcclusionEffect, which shades areas of 3D geometry based on their proximity to other 3D geometry.

This ambient-occlusion model uses 3 parameters:

  • the radius parameter is the distance in meters at which the effect is sampled.
  • the power parameter determines how strongly the effect is applied.
  • the performance hint parameter chooses whether to prioritize visual quality or rendering speed.

Create one with AmbientOcclusionModel#newBuilder, or start from an existing model with asBuilder, and apply it with AmbientOcclusionEffect#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 AmbientOcclusionModel.Builder newBuilder()
      Creates a new builder with the default ambient-occlusion parameters.
      Returns:
      a new builder.
    • asBuilder

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

      public double getRadius()
      Returns the radius in meters at which the effect is sampled.
      Returns:
      the radius in meters at which the effect is sampled.
    • getPower

      public double getPower()
      Returns the power factor which determines how strongly the effect is applied to the view.
      Returns:
      the power factor which determines how strongly the effect is applied to the view.
    • getPerformanceHint

      @NotNull public PerformanceHint getPerformanceHint()
      Returns the performance hint that indicates if Ambient Occlusion should prioritize quality or speed.
      Returns:
      the performance hint that indicates if Ambient Occlusion should prioritize quality or speed.
    • hashCode

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

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