Class IrradianceSphericalHarmonicsGenerator

All Implemented Interfaces:

public class IrradianceSphericalHarmonicsGenerator extends RunnableWithProgress
Generates the Irradiance map for PBR. This job can be launched from a separate thread.

This is not used as we use spherical harmonics directly now, but we may need this code again at some point

  • Constructor Details

    • IrradianceSphericalHarmonicsGenerator

      public IrradianceSphericalHarmonicsGenerator(Application app, JobProgressListener<Integer> listener)
      Creates an Irradiance map generator. The app is needed to enqueue the call to the EnvironmentCamera when the generation is done, so that this process is thread safe.
      app - the Application
      listener - to monitor progress (alias created)
  • Method Details

    • setGenerationParam

      public void setGenerationParam(TextureCubeMap sourceMap, LightProbe store)
      Fills all the generation parameters
      sourceMap - the source cube map EnvMapUtils.FixSeamsMethod
      store - The cube map to store the result in.
    • run

      public void run()