Package com.jme3.shadow
Class SpotLightShadowFilter
- All Implemented Interfaces:
- Savable,- JmeCloneable,- Cloneable
This Filter does basically the same as a SpotLightShadowRenderer except it
 renders the post shadow pass as a fullscreen quad pass instead of a geometry
 pass. It's mostly faster than PssmShadowRenderer as long as you have more
 than about ten shadow receiving objects. The expense is the drawback that
 the shadow Receive mode set on spatial is ignored. So basically all and only
 objects that render depth in the scene receive shadows. See this post for
 more details
 http://jmonkeyengine.org/groups/general-2/forum/topic/silly-question-about-shadow-rendering/#post-191599
 API is basically the same as the PssmShadowRenderer;
- 
Nested Class SummaryNested classes/interfaces inherited from class com.jme3.post.FilterFilter.Pass
- 
Field SummaryFields inherited from class com.jme3.shadow.AbstractShadowFiltershadowRenderer, viewPortFields inherited from class com.jme3.post.FilterdefaultPass, enabled, material, postRenderPasses, processor
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedUsed for serialization.SpotLightShadowFilter(AssetManager assetManager, int shadowMapSize) Creates a SpotLight Shadow Filter
- 
Method SummaryModifier and TypeMethodDescriptiongetLight()return the light used to cast shadowsvoidread(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);voidSets the light to use to cast shadowsvoidwrite(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);Methods inherited from class com.jme3.shadow.AbstractShadowFiltercloneFields, getEdgeFilteringMode, getEdgesThickness, getMaterial, getNumShadowMaps, getPreShadowForcedRenderState, getShadowCompareMode, getShadowIntensity, getShadowMapSize, getShadowMaterial, getShadowZExtend, getShadowZFadeLength, initFilter, isFlushQueues, isRenderBackFacesShadows, isRequiresDepthTexture, jmeClone, postFrame, postQueue, preFrame, setEdgeFilteringMode, setEdgesThickness, setRenderBackFacesShadows, setShadowCompareMode, setShadowIntensity, setShadowZExtend, setShadowZFadeLengthMethods inherited from class com.jme3.post.Filtercleanup, cleanUpFilter, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresBilinear, isRequiresSceneTexture, postFilter, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer
- 
Constructor Details- 
SpotLightShadowFilterprotected SpotLightShadowFilter()Used for serialization. Use SpotLightShadowFilter#SpotLightShadowFilter(AssetManager assetManager, int shadowMapSize) instead.
- 
SpotLightShadowFilterCreates a SpotLight Shadow Filter- Parameters:
- assetManager- the application asset manager
- shadowMapSize- the size of the rendered shadowmaps (512,1024,2048, etc...) The more quality, the fewer fps.
 
 
- 
- 
Method Details- 
getLightreturn the light used to cast shadows- Returns:
- the SpotLight
 
- 
setLightSets the light to use to cast shadows- Parameters:
- light- a SpotLight
 
- 
writeDescription copied from class:FilterOverride 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);- Specified by:
- writein interface- Savable
- Overrides:
- writein class- AbstractShadowFilter<SpotLightShadowRenderer>
- Parameters:
- ex- the exporter (not null)
- Throws:
- IOException- from the exporter
 
- 
readDescription copied from class:FilterOverride 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);- Specified by:
- readin interface- Savable
- Overrides:
- readin class- AbstractShadowFilter<SpotLightShadowRenderer>
- Throws:
- IOException
 
 
-