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
Fields inherited from class com.jme3.environment.baker.GenericEnvBaker
assetManager, axisX, axisY, axisZ, bos, cam, depthFormat, envMap, renderManager, texturePulling
-
Constructor Summary
ConstructorDescriptionIBLHybridEnvBakerLight
(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
void
Vector3f[]
boolean
Gets 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, 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
-
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:EnvBaker
Gets if textures should be pulled from the GPU.- Specified by:
isTexturePulling
in interfaceEnvBaker
- Overrides:
isTexturePulling
in classGenericEnvBaker
- Returns:
-
bakeSpecularIBL
public void bakeSpecularIBL()- Specified by:
bakeSpecularIBL
in interfaceIBLEnvBakerLight
-
getSpecularIBL
- Specified by:
getSpecularIBL
in interfaceIBLEnvBakerLight
-
bakeSphericalHarmonicsCoefficients
public void bakeSphericalHarmonicsCoefficients()- Specified by:
bakeSphericalHarmonicsCoefficients
in interfaceIBLEnvBakerLight
-
getSphericalHarmonicsCoefficients
- Specified by:
getSphericalHarmonicsCoefficients
in interfaceIBLEnvBakerLight
-