Package com.jme3.environment.baker
Class IBLHybridEnvBakerLight
java.lang.Object
com.jme3.environment.baker.GenericEnvBaker
com.jme3.environment.baker.IBLHybridEnvBakerLight
- All Implemented Interfaces:
EnvBaker,IBLEnvBakerLight
- Direct Known Subclasses:
IBLGLEnvBakerLight
An env baker for IBL that bakes the specular map on the GPU and uses
spherical harmonics generated on the CPU for the irradiance map.
This is lighter on VRAM but uses the CPU to compute the irradiance map.
-
Field Summary
FieldsFields inherited from class com.jme3.environment.baker.GenericEnvBaker
assetManager, axisX, axisY, axisZ, bos, cam, depthFormat, envMap, renderManager, texturePulling -
Constructor Summary
ConstructorsConstructorDescriptionIBLHybridEnvBakerLight(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 TypeMethodDescriptionvoidvoidVector3f[]booleanGets if textures should be pulled from the GPU.Methods 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
-
Field Details
-
specular
-
shCoef
-
-
Constructor Details
-
IBLHybridEnvBakerLight
public IBLHybridEnvBakerLight(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 classGenericEnvBaker- Returns:
-
bakeSpecularIBL
public void bakeSpecularIBL()- Specified by:
bakeSpecularIBLin interfaceIBLEnvBakerLight
-
getSpecularIBL
- Specified by:
getSpecularIBLin interfaceIBLEnvBakerLight
-
bakeSphericalHarmonicsCoefficients
public void bakeSphericalHarmonicsCoefficients()- Specified by:
bakeSphericalHarmonicsCoefficientsin interfaceIBLEnvBakerLight
-
getSphericalHarmonicsCoefficients
- Specified by:
getSphericalHarmonicsCoefficientsin interfaceIBLEnvBakerLight
-