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
FieldsModifier and TypeFieldDescriptionprotected Texture2Dprotected TextureCubeMapprotected TextureCubeMapFields inherited from class com.jme3.environment.baker.GenericEnvBaker
assetManager, axisX, axisY, axisZ, bos, cam, depthFormat, envMap, renderManager, texturePulling -
Constructor Summary
ConstructorsConstructorDescriptionIBLGLEnvBaker(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 TypeMethodDescriptionvoidBakes the irradiance map.voidBakes 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, 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, 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:IBLEnvBakerGets the specular IBL map.- Specified by:
getSpecularIBLin interfaceIBLEnvBaker- Returns:
- The specular IBL map
-
getIrradiance
Description copied from interface:IBLEnvBakerGets the irradiance map.- Specified by:
getIrradiancein interfaceIBLEnvBaker- Returns:
- The irradiance map
-
bakeSpecularIBL
public void bakeSpecularIBL()Description copied from interface:IBLEnvBakerBakes the specular IBL map.- Specified by:
bakeSpecularIBLin interfaceIBLEnvBaker
-
genBRTF
Description copied from interface:IBLEnvBakerGenerates the BRDF texture.- Specified by:
genBRTFin interfaceIBLEnvBaker- Returns:
- The BRDF texture
-
bakeIrradiance
public void bakeIrradiance()Description copied from interface:IBLEnvBakerBakes the irradiance map.- Specified by:
bakeIrradiancein interfaceIBLEnvBaker
-