Package com.jme3.environment.baker
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 SummaryModifier and TypeMethodDescriptionvoidbakeEnvironment(Spatial scene, Vector3f position, float frustumNear, float frustumFar, Predicate<Geometry> filter) Bakes the environment.voidclean()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.booleanGets if textures should be pulled from the GPU.voidsetTexturePulling(boolean v) Specifies whether textures should be pulled from the GPU.
- 
Method Details- 
bakeEnvironmentvoid 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
 
- 
getEnvMapTextureCubeMap getEnvMap()Gets the environment map.- Returns:
- The environment map
 
- 
cleanvoid clean()Cleans the environment baker This method should be called when the baker is no longer needed It will clean up all the resources.
- 
setTexturePullingvoid setTexturePulling(boolean v) Specifies whether textures should be pulled from the GPU.- Parameters:
- v-
 
- 
isTexturePullingboolean isTexturePulling()Gets if textures should be pulled from the GPU.- Returns:
 
 
-