Package com.jme3.shader
Class UniformBindingManager
java.lang.Object
com.jme3.shader.UniformBindingManager
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
newFrame()
Internal use only.void
void
Set the timer that should be used to query the time basedUniformBinding
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.
-
Constructor Details
-
UniformBindingManager
public UniformBindingManager()
-
-
Method Details
-
updateUniformBindings
Internal use only. Updates the given list of uniforms withuniform bindings
based on the current world state.- Parameters:
shader
- (not null)
-
setWorldMatrix
Internal use only. Sets the world matrix to use for future rendering. This has no effect unless objects are rendered manually usingMaterial.render(com.jme3.scene.Geometry, com.jme3.renderer.RenderManager)
.- Parameters:
mat
- The world matrix to set
-
setTimer
Set the timer that should be used to query the time basedUniformBinding
s for material world parameters.- Parameters:
timer
- The timer to query time world parameters
-
setCamera
-
setViewPort
public void setViewPort(int viewX, int viewY, int viewWidth, int viewHeight) -
newFrame
public void newFrame()Internal use only. Called by the RenderManager at the beginning of a new application frame.
-