|Modifier and Type||Method and Description|
Determine the shader to use for the given geometry / material combination.
Requests that the
Shader makeCurrent(AssetManager assetManager, RenderManager renderManager, java.util.EnumSet<Caps> rendererCaps, LightList lights, DefineList defines)
assetManager- The asset manager to use for loading shader source code, shader nodes, and and lookup textures.
renderManager- The render manager for which rendering is to be performed.
rendererCaps- Renderer capabilities. The returned shader must support these capabilities.
lights- The lights with which the geometry shall be rendered. This list must not include culled lights.
defines- The define list used by the technique, any
unmapped definesshould be set here to change shader behavior.
void render(RenderManager renderManager, Shader shader, Geometry geometry, LightList lights, int lastTexUnit)
TechniqueDefLogicrenders the given geometry. Fixed material functionality such as
material parameters, and
uniform bindingshave already been applied by the material, however,
textures, can still be overridden.
renderManager- The render manager to perform the rendering against.
shader- The shader that was selected by this logic in
makeCurrent(com.jme3.asset.AssetManager, com.jme3.renderer.RenderManager, java.util.EnumSet, com.jme3.light.LightList, com.jme3.shader.DefineList).
geometry- The geometry to render
lights- Lights which influence the geometry.
lastTexUnit- the index of the most recently used texture unit