Package com.jme3.light
Class WeightedProbeBlendingStrategy
java.lang.Object
com.jme3.light.WeightedProbeBlendingStrategy
- All Implemented Interfaces:
LightProbeBlendingStrategy
This strategy returns the 3 closest probe from the rendered object.
Image based lighting will be blended between those probes in the shader according to their distance and range.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
populateProbes
(Geometry g, LightList lightList) Populates the resulting light probes into the given light list.void
registerProbe
(LightProbe probe) Registers a probe with this strategy
-
Constructor Details
-
WeightedProbeBlendingStrategy
public WeightedProbeBlendingStrategy()
-
-
Method Details
-
registerProbe
Description copied from interface:LightProbeBlendingStrategy
Registers a probe with this strategy- Specified by:
registerProbe
in interfaceLightProbeBlendingStrategy
- Parameters:
probe
- the probe to be registered
-
populateProbes
Description copied from interface:LightProbeBlendingStrategy
Populates the resulting light probes into the given light list.- Specified by:
populateProbes
in interfaceLightProbeBlendingStrategy
- Parameters:
g
- the geometry for which the light list is computedlightList
- the result light list
-