public class UniformBindingManager
extends java.lang.Object
UniformBindingManager
helps RenderManager
to manage
uniform bindings
.
The updateUniformBindings(com.jme3.shader.Shader)
method will update
a given list of uniforms based on the current state
of the manager.Constructor and Description |
---|
UniformBindingManager() |
Modifier and Type | Method and Description |
---|---|
void |
newFrame()
Internal use only.
|
void |
setCamera(Camera cam,
Matrix4f viewMatrix,
Matrix4f projMatrix,
Matrix4f viewProjMatrix) |
void |
setTimer(Timer timer)
Set the timer that should be used to query the time based
UniformBinding s for material world parameters. |
void |
setViewPort(int viewX,
int viewY,
int viewWidth,
int viewHeight) |
void |
setWorldMatrix(Matrix4f mat)
Internal use only.
|
void |
updateUniformBindings(Shader shader)
Internal use only.
|
public void updateUniformBindings(Shader shader)
uniform bindings
based on the current world state.shader
- (not null)public void setWorldMatrix(Matrix4f mat)
Material.render(com.jme3.scene.Geometry, com.jme3.renderer.RenderManager)
.mat
- The world matrix to setpublic void setTimer(Timer timer)
UniformBinding
s for material world parameters.timer
- The timer to query time world parameterspublic void setCamera(Camera cam, Matrix4f viewMatrix, Matrix4f projMatrix, Matrix4f viewProjMatrix)
public void setViewPort(int viewX, int viewY, int viewWidth, int viewHeight)
public void newFrame()