Searched refs:shadowCam (Results 1 – 4 of 4) sorted by relevance
/external/jmonkeyengine/engine/src/core/com/jme3/shadow/ |
D | BasicShadowRenderer.java | 62 private Camera shadowCam; field in BasicShadowRenderer 79 shadowCam = new Camera(size, size); in BasicShadowRenderer() 133 return shadowCam; in getShadowCamera() 162 shadowCam.setProjectionMatrix(null); in postQueue() 163 shadowCam.setParallelProjection(true); in postQueue() 166 shadowCam.lookAtDirection(direction, Vector3f.UNIT_Y); in postQueue() 167 shadowCam.update(); in postQueue() 168 shadowCam.setLocation(frustaCenter); in postQueue() 169 shadowCam.update(); in postQueue() 170 shadowCam.updateViewProjection(); in postQueue() [all …]
|
D | ShadowUtil.java | 277 public static void updateShadowCamera(Camera shadowCam, Vector3f[] points) { in updateShadowCamera() argument 278 boolean ortho = shadowCam.isParallelProjection(); in updateShadowCamera() 279 shadowCam.setProjectionMatrix(null); in updateShadowCamera() 282 shadowCam.setFrustum(-1, 1, -1, 1, 1, -1); in updateShadowCamera() 284 shadowCam.setFrustumPerspective(45, 1, 1, 150); in updateShadowCamera() 287 Matrix4f viewProjMatrix = shadowCam.getViewProjectionMatrix(); in updateShadowCamera() 288 Matrix4f projMatrix = shadowCam.getProjectionMatrix(); in updateShadowCamera() 318 shadowCam.setProjectionMatrix(result); in updateShadowCamera() 333 Camera shadowCam, in updateShadowCamera() argument 335 updateShadowCamera(occluders, receivers, shadowCam, points, null); in updateShadowCamera() [all …]
|
D | PssmShadowRenderer.java | 126 private Camera shadowCam; field in PssmShadowRenderer 205 shadowCam = new Camera(size, size); in PssmShadowRenderer() 206 shadowCam.setParallelProjection(true); in PssmShadowRenderer() 355 shadowCam.getRotation().lookAt(direction, shadowCam.getUp()); in postQueue() 356 shadowCam.update(); in postQueue() 357 shadowCam.updateViewProjection(); in postQueue() 385 ShadowUtil.updateShadowCamera(occluders, receivers, shadowCam, points, splitOccluders); in postQueue() 388 lightViewProjectionsMatrices[i] = shadowCam.getViewProjectionMatrix().clone(); in postQueue() 389 renderManager.setCamera(shadowCam, false); in postQueue() 395 viewPort.getQueue().renderShadowQueue(splitOccluders, renderManager, shadowCam, true); in postQueue()
|
/external/jmonkeyengine/engine/src/test/jme3test/light/ |
D | TestShadow.java | 113 Camera shadowCam = bsr.getShadowCamera(); in simpleUpdate() local 114 ShadowUtil.updateFrustumPoints2(shadowCam, points); in simpleUpdate()
|