Package com.jme3.environment
Class FastLightProbeFactory
java.lang.Object
com.jme3.environment.FastLightProbeFactory
A faster LightProbeFactory that uses GPU accelerated algorithms.
This is the GPU version of @{link LightProbeFactory} and should be generally preferred.
For common use cases where the probe is baking the scene or part of the scene around it, it
is advised to use the @{link EnvironmentProbeControl} instead since it does automatically most of the
boilerplate work.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Node
getDebugGui
(AssetManager manager, LightProbe probe) For debuging purposes only Will return a Node meant to be added to a GUI presenting the 2 cube maps in a cross pattern with all the mip maps.static LightProbe
makeProbe
(RenderManager rm, AssetManager am, int size, Vector3f pos, float frustumNear, float frustumFar, Spatial scene) Creates a LightProbe with the given EnvironmentCamera in the given scene.
-
Constructor Details
-
FastLightProbeFactory
public FastLightProbeFactory()
-
-
Method Details
-
makeProbe
public static LightProbe makeProbe(RenderManager rm, AssetManager am, int size, Vector3f pos, float frustumNear, float frustumFar, Spatial scene) Creates a LightProbe with the given EnvironmentCamera in the given scene.- Parameters:
rm
- The RenderManageram
- The AssetManagersize
- The size of the probepos
- The position of the probefrustumNear
- The near frustum of the probefrustumFar
- The far frustum of the probescene
- The scene to bake- Returns:
- The baked LightProbe
-
getDebugGui
For debuging purposes only Will return a Node meant to be added to a GUI presenting the 2 cube maps in a cross pattern with all the mip maps.- Parameters:
manager
- the asset manager- Returns:
- a debug node
-