Package com.jme3.shadow
Class InstancedDirectionalShadowFilter
java.lang.Object
com.jme3.post.Filter
com.jme3.shadow.AbstractShadowFilterVR<DirectionalLightShadowRendererVR>
com.jme3.shadow.DirectionalLightShadowFilterVR
com.jme3.shadow.InstancedDirectionalShadowFilter
- All Implemented Interfaces:
Savable
Deprecated.
The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
For new Virtual Reality projects, use user libraries that provide OpenXR support.
See Virtual Reality JME wiki section
for more information.
An instanced version of the
directional light shadow filter
.-
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.post.Filter
Filter.Pass
-
Field Summary
Fields inherited from class com.jme3.shadow.AbstractShadowFilterVR
shadowRenderer, viewPort
Fields inherited from class com.jme3.post.Filter
defaultPass, enabled, material, postRenderPasses, processor
-
Constructor Summary
ConstructorDescriptionInstancedDirectionalShadowFilter
(Application application, Camera camera, int shadowMapSize, int nbSplits, boolean instancedRendering, Camera rightCamera) Deprecated.Create a new instanced version of thedirectional light shadow filter
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Get if this filter is using instance rendering.protected void
preFrame
(float tpf) Deprecated.Override this method if you want to modify parameters according to tpf before the rendering of the frame.void
setInstanceRendering
(boolean instanceRendering) Deprecated.Set if this filter has to use instance rendering.Methods inherited from class com.jme3.shadow.DirectionalLightShadowFilterVR
getLambda, getLight, isEnabledStabilization, read, setEnabledStabilization, setLambda, setLight, write
Methods inherited from class com.jme3.shadow.AbstractShadowFilterVR
getEdgeFilteringMode, getEdgesThickness, getMaterial, getPreShadowForcedRenderState, getShadowCompareMode, getShadowIntensity, getShadowMaterial, getShadowZExtend, getShadowZFadeLength, initFilter, isFlushQueues, isRenderBackFacesShadows, isRequiresDepthTexture, postFrame, postQueue, setEdgeFilteringMode, setEdgesThickness, setRenderBackFacesShadows, setShadowCompareMode, setShadowIntensity, setShadowZExtend, setShadowZFadeLength
Methods inherited from class com.jme3.post.Filter
cleanup, cleanUpFilter, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresBilinear, isRequiresSceneTexture, postFilter, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer
-
Constructor Details
-
InstancedDirectionalShadowFilter
public InstancedDirectionalShadowFilter(Application application, Camera camera, int shadowMapSize, int nbSplits, boolean instancedRendering, Camera rightCamera) Deprecated.Create a new instanced version of thedirectional light shadow filter
.- Parameters:
application
- the application that this filter is attached to.camera
-shadowMapSize
- the size of the rendered shadowmaps (512, 1024, 2048, etcetera)nbSplits
- the number of shadow maps rendered (More shadow maps yield better quality, fewer frames per second.)instancedRendering
-true
if this filter has to use instance rendering andfalse
otherwise.rightCamera
- the camera used as right eye in stereo rendering mode.
-
-
Method Details
-
preFrame
protected void preFrame(float tpf) Deprecated.Description copied from class:Filter
Override this method if you want to modify parameters according to tpf before the rendering of the frame. This is useful for animated filters Also it can be the place to render pre passes- Overrides:
preFrame
in classAbstractShadowFilterVR<DirectionalLightShadowRendererVR>
- Parameters:
tpf
- the time used to render the previous frame
-
isInstanceRendering
public boolean isInstanceRendering()Deprecated.Get if this filter is using instance rendering.- Returns:
true
if this filter is using instance rendering andfalse
otherwise.- See Also:
-
setInstanceRendering
public void setInstanceRendering(boolean instanceRendering) Deprecated.Set if this filter has to use instance rendering.- Parameters:
instanceRendering
-true
if this filter has to use instance rendering andfalse
otherwise.- See Also:
-