Class ScreenSpaceLightMapGraphicsModule

java.lang.Object
technology.sola.engine.defaults.graphics.modules.SolaGraphicsModule
technology.sola.engine.defaults.graphics.modules.ScreenSpaceLightMapGraphicsModule
All Implemented Interfaces:
Comparable<SolaGraphicsModule>

@NullMarked public class ScreenSpaceLightMapGraphicsModule extends SolaGraphicsModule
ScreenSpaceLightMapGraphicsModule is a SolaGraphicsModule that handles drawing lighting for Entity that have LightComponents.
  • Field Details

    • ORDER

      public static final int ORDER
      The render order for this graphics module.
      See Also:
  • Constructor Details

    • ScreenSpaceLightMapGraphicsModule

      public ScreenSpaceLightMapGraphicsModule(Color ambientColor)
      Creates an instance of this graphics module with ambient Color used for lighting.
      Parameters:
      ambientColor - the ambient color for lighting
  • Method Details

    • getAmbientColor

      public Color getAmbientColor()
      Returns:
      the ambient Color
    • setAmbientColor

      public void setAmbientColor(Color ambientColor)
      Sets the ambient Color 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 class SolaGraphicsModule
      Parameters:
      renderer - tbe Renderer instance
      world - the World instance
      cameraScaleTransform - the camera's scale
      cameraTranslationTransform - 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 class SolaGraphicsModule
      Returns:
      the order of this graphics module