Home
last modified time | relevance | path

Searched refs:cropMax (Results 1 – 1 of 1) sorted by relevance

/external/jmonkeyengine/engine/src/core/com/jme3/shadow/
DShadowUtil.java445 Vector3f cropMax = new Vector3f(); in updateShadowCamera() local
449 cropMax.x = min(min(casterMax.x, receiverMax.x), splitMax.x); in updateShadowCamera()
452 cropMax.y = min(min(casterMax.y, receiverMax.y), splitMax.y); in updateShadowCamera()
455 cropMax.z = min(receiverMax.z, splitMax.z); in updateShadowCamera()
462 scaleX = (2.0f) / (cropMax.x - cropMin.x); in updateShadowCamera()
463 scaleY = (2.0f) / (cropMax.y - cropMin.y); in updateShadowCamera()
465 offsetX = -0.5f * (cropMax.x + cropMin.x) * scaleX; in updateShadowCamera()
466 offsetY = -0.5f * (cropMax.y + cropMin.y) * scaleY; in updateShadowCamera()
468 scaleZ = 1.0f / (cropMax.z - cropMin.z); in updateShadowCamera()