Interface EnvBaker

All Known Subinterfaces:
IBLEnvBaker, IBLEnvBakerLight
All Known Implementing Classes:
GenericEnvBaker, IBLGLEnvBaker, IBLGLEnvBakerLight, IBLHybridEnvBakerLight

public interface EnvBaker
An environment baker to bake a 3d environment into a cubemap
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bakeEnvironment(Spatial scene, Vector3f position, float frustumNear, float frustumFar, Predicate<Geometry> filter)
    Bakes the environment.
    void
    Cleans the environment baker This method should be called when the baker is no longer needed It will clean up all the resources.
    Gets the environment map.
    boolean
    Gets if textures should be pulled from the GPU.
    void
    setTexturePulling(boolean v)
    Specifies whether textures should be pulled from the GPU.
  • Method Details

    • bakeEnvironment

      void bakeEnvironment(Spatial scene, Vector3f position, float frustumNear, float frustumFar, Predicate<Geometry> filter)
      Bakes the environment.
      Parameters:
      scene - The scene to bake
      position - The position of the camera
      frustumNear - The near frustum
      frustumFar - The far frustum
      filter - A filter to select which geometries to bake
    • getEnvMap

      TextureCubeMap getEnvMap()
      Gets the environment map.
      Returns:
      The environment map
    • clean

      void clean()
      Cleans the environment baker This method should be called when the baker is no longer needed It will clean up all the resources.
    • setTexturePulling

      void setTexturePulling(boolean v)
      Specifies whether textures should be pulled from the GPU.
      Parameters:
      v -
    • isTexturePulling

      boolean isTexturePulling()
      Gets if textures should be pulled from the GPU.
      Returns: