Package com.jme3.environment.baker
Class IBLGLEnvBakerLight
java.lang.Object
com.jme3.environment.baker.GenericEnvBaker
com.jme3.environment.baker.IBLHybridEnvBakerLight
com.jme3.environment.baker.IBLGLEnvBakerLight
- All Implemented Interfaces:
EnvBaker
,IBLEnvBakerLight
Fully accelerated env baker for IBL that bakes the specular map and spherical
harmonics on the GPU.
This is lighter on VRAM but it is not as parallelized as IBLGLEnvBaker
-
Field Summary
Fields inherited from class com.jme3.environment.baker.IBLHybridEnvBakerLight
shCoef, specular
Fields inherited from class com.jme3.environment.baker.GenericEnvBaker
assetManager, axisX, axisY, axisZ, bos, cam, depthFormat, envMap, renderManager, texturePulling
-
Constructor Summary
ConstructorDescriptionIBLGLEnvBakerLight
(RenderManager rm, AssetManager am, Image.Format format, Image.Format depthFormat, int env_size, int specular_size) Create a new IBL env baker -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
Gets if textures should be pulled from the GPU.Methods inherited from class com.jme3.environment.baker.IBLHybridEnvBakerLight
bakeSpecularIBL, getSpecularIBL, getSphericalHarmonicsCoefficients
Methods inherited from class com.jme3.environment.baker.GenericEnvBaker
bakeEnvironment, clean, endPulling, getEnvMap, limitMips, pull, setTexturePulling, startPulling, updateAndGetInternalCamera
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.jme3.environment.baker.EnvBaker
bakeEnvironment, clean, getEnvMap, setTexturePulling
-
Constructor Details
-
IBLGLEnvBakerLight
public IBLGLEnvBakerLight(RenderManager rm, AssetManager am, Image.Format format, Image.Format depthFormat, int env_size, int specular_size) Create a new IBL env baker- Parameters:
rm
- The render manager used to render the env sceneam
- The asset manager used to load the baking shadersformat
- The format of the color buffersdepthFormat
- The format of the depth buffersenv_size
- The size in pixels of the output environment cube map (eg. 1024)specular_size
- The size in pixels of the output specular cube map (eg. 1024)
-
-
Method Details
-
isTexturePulling
public boolean isTexturePulling()Description copied from interface:EnvBaker
Gets if textures should be pulled from the GPU.- Specified by:
isTexturePulling
in interfaceEnvBaker
- Overrides:
isTexturePulling
in classIBLHybridEnvBakerLight
- Returns:
-
bakeSphericalHarmonicsCoefficients
public void bakeSphericalHarmonicsCoefficients()- Specified by:
bakeSphericalHarmonicsCoefficients
in interfaceIBLEnvBakerLight
- Overrides:
bakeSphericalHarmonicsCoefficients
in classIBLHybridEnvBakerLight
-