Package com.jme3.material.logic
Class DefaultTechniqueDefLogic
java.lang.Object
com.jme3.material.logic.DefaultTechniqueDefLogic
- All Implemented Interfaces:
TechniqueDefLogic
- Direct Known Subclasses:
MultiPassLightingLogic
,SinglePassAndImageBasedLightingLogic
,SinglePassLightingLogic
,StaticPassLightingLogic
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static ColorRGBA
getAmbientColor
(LightList lightList, boolean removeLights, ColorRGBA ambientLightColor) makeCurrent
(AssetManager assetManager, RenderManager renderManager, EnumSet<Caps> rendererCaps, LightList lights, DefineList defines) Determine the shader to use for the given geometry / material combination.void
render
(RenderManager renderManager, Shader shader, Geometry geometry, LightList lights, Material.BindUnits lastBindUnits) Requests that theTechniqueDefLogic
renders the given geometry.static void
renderMeshFromGeometry
(Renderer renderer, Geometry geom)
-
Field Details
-
techniqueDef
-
-
Constructor Details
-
DefaultTechniqueDefLogic
-
-
Method Details
-
makeCurrent
public Shader makeCurrent(AssetManager assetManager, RenderManager renderManager, EnumSet<Caps> rendererCaps, LightList lights, DefineList defines) Description copied from interface:TechniqueDefLogic
Determine the shader to use for the given geometry / material combination.- Specified by:
makeCurrent
in interfaceTechniqueDefLogic
- Parameters:
assetManager
- The asset manager to use for loading shader source code, shader nodes, 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, anyunmapped defines
should be set here to change shader behavior.- Returns:
- The shader to use for rendering.
-
renderMeshFromGeometry
-
getAmbientColor
-
render
public void render(RenderManager renderManager, Shader shader, Geometry geometry, LightList lights, Material.BindUnits lastBindUnits) Description copied from interface:TechniqueDefLogic
Requests that theTechniqueDefLogic
renders the given geometry. Fixed material functionality such asRenderState
,material parameters
, anduniform bindings
have already been applied by the material, however,RenderState
,uniforms
,textures
, can still be overridden.- Specified by:
render
in interfaceTechniqueDefLogic
- Parameters:
renderManager
- The render manager to perform the rendering against.shader
- The shader that was selected by this logic inTechniqueDefLogic.makeCurrent(com.jme3.asset.AssetManager, com.jme3.renderer.RenderManager, java.util.EnumSet, com.jme3.light.LightList, com.jme3.shader.DefineList)
.geometry
- The geometry to renderlights
- Lights which influence the geometry.
-