Module technology.sola.engine
Class ScreenSpaceLightMapGraphicsModule
java.lang.Object
technology.sola.engine.defaults.graphics.modules.SolaGraphicsModule
technology.sola.engine.defaults.graphics.modules.ScreenSpaceLightMapGraphicsModule
- All Implemented Interfaces:
Comparable<SolaGraphicsModule>
ScreenSpaceLightMapGraphicsModule is a
SolaGraphicsModule
that handles drawing lighting for
Entity
that have LightComponent
s.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The render order for this graphics module. -
Constructor Summary
ConstructorsConstructorDescriptionScreenSpaceLightMapGraphicsModule
(Color ambientColor) Creates an instance of this graphics module with ambientColor
used for lighting. -
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
Gets the order of this graphics module.void
renderMethod
(Renderer renderer, technology.sola.ecs.World world, Matrix3D cameraScaleTransform, Matrix3D cameraTranslationTransform) The specific render method for a graphics module that is called once per frame if active.void
setAmbientColor
(Color ambientColor) Sets the ambientColor
used for lighting.Methods inherited from class technology.sola.engine.defaults.graphics.modules.SolaGraphicsModule
compareTo, isActive, render, setActive
-
Field Details
-
ORDER
public static final int ORDERThe render order for this graphics module.- See Also:
-
-
Constructor Details
-
ScreenSpaceLightMapGraphicsModule
Creates an instance of this graphics module with ambientColor
used for lighting.- Parameters:
ambientColor
- the ambient color for lighting
-
-
Method Details
-
getAmbientColor
- Returns:
- the ambient
Color
-
setAmbientColor
Sets the ambientColor
used for lighting.- Parameters:
ambientColor
- the new ambient color
-
renderMethod
public void renderMethod(Renderer renderer, technology.sola.ecs.World world, Matrix3D cameraScaleTransform, Matrix3D cameraTranslationTransform) Description copied from class:SolaGraphicsModule
The specific render method for a graphics module that is called once per frame if active.- Specified by:
renderMethod
in classSolaGraphicsModule
- Parameters:
renderer
- tbeRenderer
instanceworld
- theWorld
instancecameraScaleTransform
- the camera's scalecameraTranslationTransform
- the camera's translation
-
getOrder
public int getOrder()Description copied from class:SolaGraphicsModule
Gets the order of this graphics module. A higher value means it will be rendered on top.- Overrides:
getOrder
in classSolaGraphicsModule
- Returns:
- the order of this graphics module
-