|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.shadow.ShadowUtil
public class ShadowUtil
Includes various useful shadow mapping functions.
Constructor Summary | |
---|---|
ShadowUtil()
|
Method Summary | |
---|---|
static BoundingBox |
computeBoundForPoints(Vector3f[] pts,
Matrix4f mat)
Compute bounds from an array of points |
static BoundingBox |
computeBoundForPoints(Vector3f[] pts,
Transform transform)
Compute bounds from an array of points |
static BoundingBox |
computeUnionBound(GeometryList list,
Matrix4f mat)
Compute bounds of a geomList |
static BoundingBox |
computeUnionBound(GeometryList list,
Transform transform)
Compute bounds of a geomList |
static BoundingBox |
computeUnionBound(java.util.List<BoundingVolume> bv)
Computes the bounds of multiple bounding volumes |
static void |
updateFrustumPoints(Camera viewCam,
float nearOverride,
float farOverride,
float scale,
Vector3f[] points)
Updates the points array to contain the frustum corners of the given camera. |
static void |
updateFrustumPoints2(Camera viewCam,
Vector3f[] points)
Updates a points arrays with the frustum corners of the provided camera. |
static void |
updateShadowCamera(Camera shadowCam,
Vector3f[] points)
Updates the shadow camera to properly contain the given points (which contain the eye camera frustum corners) |
static void |
updateShadowCamera(GeometryList occluders,
GeometryList receivers,
Camera shadowCam,
Vector3f[] points)
Updates the shadow camera to properly contain the given points (which contain the eye camera frustum corners) and the shadow occluder objects. |
static void |
updateShadowCamera(GeometryList occluders,
GeometryList receivers,
Camera shadowCam,
Vector3f[] points,
GeometryList splitOccluders)
Updates the shadow camera to properly contain the given points (which contain the eye camera frustum corners) and the shadow occluder objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShadowUtil()
Method Detail |
---|
public static void updateFrustumPoints2(Camera viewCam, Vector3f[] points)
viewCam
- points
- public static void updateFrustumPoints(Camera viewCam, float nearOverride, float farOverride, float scale, Vector3f[] points)
viewCam
- nearOverride
- farOverride
- public static BoundingBox computeUnionBound(GeometryList list, Transform transform)
list
- transform
-
public static BoundingBox computeUnionBound(GeometryList list, Matrix4f mat)
list
- mat
-
public static BoundingBox computeUnionBound(java.util.List<BoundingVolume> bv)
bv
-
public static BoundingBox computeBoundForPoints(Vector3f[] pts, Transform transform)
pts
- transform
-
public static BoundingBox computeBoundForPoints(Vector3f[] pts, Matrix4f mat)
pts
- mat
-
public static void updateShadowCamera(Camera shadowCam, Vector3f[] points)
shadowCam
- points
- public static void updateShadowCamera(GeometryList occluders, GeometryList receivers, Camera shadowCam, Vector3f[] points)
occluders
- receivers
- shadowCam
- points
- public static void updateShadowCamera(GeometryList occluders, GeometryList receivers, Camera shadowCam, Vector3f[] points, GeometryList splitOccluders)
occluders
- shadowCam
- points
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |