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, specularFields inherited from class com.jme3.environment.baker.GenericEnvBaker
assetManager, axisX, axisY, axisZ, bos, cam, depthFormat, envMap, renderManager, texturePulling -
Constructor Summary
ConstructorsConstructorDescriptionIBLGLEnvBakerLight(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 TypeMethodDescriptionvoidbooleanGets if textures should be pulled from the GPU.Methods inherited from class com.jme3.environment.baker.IBLHybridEnvBakerLight
bakeSpecularIBL, getSpecularIBL, getSphericalHarmonicsCoefficientsMethods inherited from class com.jme3.environment.baker.GenericEnvBaker
bakeEnvironment, clean, endPulling, getEnvMap, limitMips, pull, setTexturePulling, startPulling, updateAndGetInternalCameraMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:EnvBakerGets if textures should be pulled from the GPU.- Specified by:
isTexturePullingin interfaceEnvBaker- Overrides:
isTexturePullingin classIBLHybridEnvBakerLight- Returns:
-
bakeSphericalHarmonicsCoefficients
public void bakeSphericalHarmonicsCoefficients()- Specified by:
bakeSphericalHarmonicsCoefficientsin interfaceIBLEnvBakerLight- Overrides:
bakeSphericalHarmonicsCoefficientsin classIBLHybridEnvBakerLight
-