Package com.jme3.environment.baker
Class IBLGLEnvBaker
java.lang.Object
com.jme3.environment.baker.GenericEnvBaker
com.jme3.environment.baker.IBLGLEnvBaker
- All Implemented Interfaces:
EnvBaker
,IBLEnvBaker
Fully accelerated env baker for IBL that runs entirely on the GPU
-
Field Summary
Modifier and TypeFieldDescriptionprotected Texture2D
protected TextureCubeMap
protected TextureCubeMap
Fields inherited from class com.jme3.environment.baker.GenericEnvBaker
assetManager, axisX, axisY, axisZ, bos, cam, depthFormat, envMap, renderManager, texturePulling
-
Constructor Summary
ConstructorDescriptionIBLGLEnvBaker
(RenderManager rm, AssetManager am, Image.Format format, Image.Format depthFormat, int env_size, int specular_size, int irradiance_size, int brtf_size) Create a new IBL env baker -
Method Summary
Modifier and TypeMethodDescriptionvoid
Bakes the irradiance map.void
Bakes the specular IBL map.genBRTF()
Generates the BRDF texture.Gets the irradiance map.Gets the specular IBL map.Methods inherited from class com.jme3.environment.baker.GenericEnvBaker
bakeEnvironment, clean, endPulling, getEnvMap, isTexturePulling, 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, isTexturePulling, setTexturePulling
-
Field Details
-
brtf
-
irradiance
-
specular
-
-
Constructor Details
-
IBLGLEnvBaker
public IBLGLEnvBaker(RenderManager rm, AssetManager am, Image.Format format, Image.Format depthFormat, int env_size, int specular_size, int irradiance_size, int brtf_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)irradiance_size
- The size in pixels of the output irradiance cube map (eg. 512)brtf_size
- The size in pixels of the output brtf map (eg. 512)
-
-
Method Details
-
getSpecularIBL
Description copied from interface:IBLEnvBaker
Gets the specular IBL map.- Specified by:
getSpecularIBL
in interfaceIBLEnvBaker
- Returns:
- The specular IBL map
-
getIrradiance
Description copied from interface:IBLEnvBaker
Gets the irradiance map.- Specified by:
getIrradiance
in interfaceIBLEnvBaker
- Returns:
- The irradiance map
-
bakeSpecularIBL
public void bakeSpecularIBL()Description copied from interface:IBLEnvBaker
Bakes the specular IBL map.- Specified by:
bakeSpecularIBL
in interfaceIBLEnvBaker
-
genBRTF
Description copied from interface:IBLEnvBaker
Generates the BRDF texture.- Specified by:
genBRTF
in interfaceIBLEnvBaker
- Returns:
- The BRDF texture
-
bakeIrradiance
public void bakeIrradiance()Description copied from interface:IBLEnvBaker
Bakes the irradiance map.- Specified by:
bakeIrradiance
in interfaceIBLEnvBaker
-