public class InstancedDirectionalShadowFilter extends DirectionalLightShadowFilterVR
directional light shadow filter
.Filter.Pass
shadowRenderer, viewPort
defaultPass, enabled, material, postRenderPasses, processor
Constructor and Description |
---|
InstancedDirectionalShadowFilter(Application application,
Camera camera,
int shadowMapSize,
int nbSplits,
boolean instancedRendering,
Camera rightCamera)
Create a new instanced version of the
directional light shadow filter . |
Modifier and Type | Method and Description |
---|---|
boolean |
isInstanceRendering()
Get if this filter is using instance rendering.
|
protected void |
preFrame(float tpf)
Override this method if you want to modify parameters according to tpf before the rendering of the frame.
|
void |
setInstanceRendering(boolean instanceRendering)
Set if this filter has to use instance rendering.
|
getLambda, getLight, isEnabledStabilization, read, setEnabledStabilization, setLambda, setLight, write
getEdgeFilteringMode, getEdgesThickness, getMaterial, getPreShadowForcedRenderState, getShadowCompareMode, getShadowIntensity, getShadowMaterial, getShadowZExtend, getShadowZFadeLength, initFilter, isFlushQueues, isRenderBackFacesShadows, isRequiresDepthTexture, postFrame, postQueue, setEdgeFilteringMode, setEdgesThickness, setRenderBackFacesShadows, setShadowCompareMode, setShadowIntensity, setShadowZExtend, setShadowZFadeLength
cleanup, cleanUpFilter, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresBilinear, isRequiresSceneTexture, postFilter, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer
public InstancedDirectionalShadowFilter(Application application, Camera camera, int shadowMapSize, int nbSplits, boolean instancedRendering, Camera rightCamera)
directional light shadow filter
.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 and false
otherwise.rightCamera
- the camera used as right eye in stereo rendering mode.protected void preFrame(float tpf)
Filter
preFrame
in class AbstractShadowFilterVR<DirectionalLightShadowRendererVR>
tpf
- the time used to render the previous framepublic boolean isInstanceRendering()
true
if this filter is using instance rendering and false
otherwise.setInstanceRendering(boolean)
public void setInstanceRendering(boolean instanceRendering)
instanceRendering
- true
if this filter has to use instance rendering and false
otherwise.isInstanceRendering()