Module technology.sola.engine
Class ScreenSpaceLightMapGraphicsModule
java.lang.Object
technology.sola.engine.graphics.modules.SolaGraphicsModule
technology.sola.engine.graphics.modules.ScreenSpaceLightMapGraphicsModule
- All Implemented Interfaces:
Comparable<SolaGraphicsModule>
ScreenSpaceLightMapGraphicsModule is a
SolaGraphicsModule that handles drawing lighting for
Entity that have LightComponents.-
Constructor Summary
ConstructorsConstructorDescriptionScreenSpaceLightMapGraphicsModule(Color ambientColor) Creates an instance of this graphics module with ambientColorused for lighting. -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()Gets the order of this graphics module.voidrenderMethod(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.voidsetAmbientColor(Color ambientColor) Sets the ambientColorused for lighting.Methods inherited from class technology.sola.engine.graphics.modules.SolaGraphicsModule
compareTo, isActive, render, setActive
-
Constructor Details
-
ScreenSpaceLightMapGraphicsModule
Creates an instance of this graphics module with ambientColorused for lighting.- Parameters:
ambientColor- the ambient color for lighting
-
-
Method Details
-
getAmbientColor
- Returns:
- the ambient
Color
-
setAmbientColor
Sets the ambientColorused 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:SolaGraphicsModuleThe specific render method for a graphics module that is called once per frame if active.- Specified by:
renderMethodin classSolaGraphicsModule- Parameters:
renderer- tbeRendererinstanceworld- theWorldinstancecameraScaleTransform- the camera's scalecameraTranslationTransform- the camera's translation
-
getOrder
public int getOrder()Description copied from class:SolaGraphicsModuleGets the order of this graphics module. A higher value means it will be rendered on top.- Overrides:
getOrderin classSolaGraphicsModule- Returns:
- the order of this graphics module
-