public class SpotLightShadowFilter extends AbstractShadowFilter<SpotLightShadowRenderer>
Filter.Pass
shadowRenderer, viewPort
defaultPass, enabled, material, postRenderPasses, processor
Modifier | Constructor and Description |
---|---|
protected |
SpotLightShadowFilter()
Used for serialization.
|
|
SpotLightShadowFilter(AssetManager assetManager,
int shadowMapSize)
Creates a SpotLight Shadow Filter
|
Modifier and Type | Method and Description |
---|---|
SpotLight |
getLight()
return the light used to cast shadows
|
void |
read(JmeImporter im)
Override this method if you want to load extra properties when the filter
is loaded else only basic properties of the filter will be loaded
This method should always begin by super.read(im);
|
void |
setLight(SpotLight light)
Sets the light to use to cast shadows
|
void |
write(JmeExporter ex)
Override this method if you want to save extra properties when the filter is saved else only basic properties of the filter will be saved
This method should always begin by super.write(ex);
|
cloneFields, getEdgeFilteringMode, getEdgesThickness, getMaterial, getNumShadowMaps, getPreShadowForcedRenderState, getShadowCompareMode, getShadowIntensity, getShadowMapSize, getShadowMaterial, getShadowZExtend, getShadowZFadeLength, initFilter, isFlushQueues, isRenderBackFacesShadows, isRequiresDepthTexture, jmeClone, postFrame, postQueue, preFrame, setEdgeFilteringMode, setEdgesThickness, setFlushQueues, setRenderBackFacesShadows, setShadowCompareMode, setShadowIntensity, setShadowZExtend, setShadowZFadeLength
cleanup, cleanUpFilter, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresBilinear, isRequiresSceneTexture, postFilter, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer
protected SpotLightShadowFilter()
public SpotLightShadowFilter(AssetManager assetManager, int shadowMapSize)
assetManager
- the application asset managershadowMapSize
- the size of the rendered shadowmaps (512,1024,2048,
etc...) the more quality, the less fps).public SpotLight getLight()
public void setLight(SpotLight light)
light
- a SpotLightpublic void write(JmeExporter ex) throws java.io.IOException
Filter
write
in interface Savable
write
in class AbstractShadowFilter<SpotLightShadowRenderer>
ex
- the exporter (not null)java.io.IOException
- from the exporterpublic void read(JmeImporter im) throws java.io.IOException
Filter
read
in interface Savable
read
in class AbstractShadowFilter<SpotLightShadowRenderer>
java.io.IOException