|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jmex.effects.ProjectedTextureUtil
public class ProjectedTextureUtil
ProjectedTextureUtil
Constructor Summary | |
---|---|
ProjectedTextureUtil()
|
Method Summary | |
---|---|
static void |
matrixFrustum(float frustumLeft,
float frustumRight,
float frustumBottom,
float frustumTop,
float frustumNear,
float frustumFar,
Matrix4f result)
Populates a Matrix4f with the proper frustum transformations
from the Projection matrix. |
static void |
matrixLookAt(Vector3f location,
Vector3f at,
Vector3f up,
Matrix4f result)
Populates a Matrix4f with the proper look at transformations
from the ModelView matrix. |
static void |
matrixPerspective(float fovY,
float aspect,
float near,
float far,
Matrix4f result)
Populates a Matrix4f with the proper frustum transformations
from the ModelView matrix. |
static void |
matrixProjection(float fovY,
float aspect,
float near,
float far,
Matrix4f result)
Populates a Matrix4f with the proper frustum transformations
from the Projection matrix. |
static void |
updateProjectedTexture(Texture texture,
float fov,
float aspect,
float near,
float far,
Vector3f pos,
Vector3f aim,
Vector3f up)
Updated texture matrix on the provided texture |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectedTextureUtil()
Method Detail |
---|
public static void updateProjectedTexture(Texture texture, float fov, float aspect, float near, float far, Vector3f pos, Vector3f aim, Vector3f up)
texture
- Texture to update texturematrix onfov
- Projector field of view, in anglesaspect
- Projector frustum aspect rationear
- Projector frustum near planefar
- Projector frustum far planepos
- Projector positionaim
- Projector look at positionpublic static void matrixLookAt(Vector3f location, Vector3f at, Vector3f up, Matrix4f result)
Matrix4f
with the proper look at transformations
from the ModelView matrix.
location
- the 'Where' in result matrixat
- the 'At' in the result matrixup
- the world upresult
- the altered Matrix4f
public static void matrixPerspective(float fovY, float aspect, float near, float far, Matrix4f result)
Matrix4f
with the proper frustum transformations
from the ModelView matrix.
fovY
- the Field of Viewaspect
- the aspect rationear
- the near plane of the frustumfar
- the far frame of the frustumresult
- the altered Matrix4f
public static void matrixProjection(float fovY, float aspect, float near, float far, Matrix4f result)
Matrix4f
with the proper frustum transformations
from the Projection matrix.
fovY
- the Field of Viewaspect
- the aspect rationear
- the near plane of the frustumfar
- the far frame of the frustumresult
- the altered Matrix4f
public static void matrixFrustum(float frustumLeft, float frustumRight, float frustumBottom, float frustumTop, float frustumNear, float frustumFar, Matrix4f result)
Matrix4f
with the proper frustum transformations
from the Projection matrix.
frustumLeft
- the left plane of the frustumfrustumRight
- the right plane of the frustumfrustumBottom
- the bottom plane of the frustumfrustumTop
- the top plane of the frustumfrustumNear
- the near plane of the frustumfrustumFar
- the far plane of the frustumresult
- the altered Matrix4f
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |