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 Summary
Modifier and TypeMethodDescriptionvoid
bakeEnvironment
(Spatial scene, Vector3f position, float frustumNear, float frustumFar, Predicate<Geometry> filter) Bakes the environment.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.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 bakeposition
- The position of the camerafrustumNear
- The near frustumfrustumFar
- The far frustumfilter
- 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:
-