Enum Class CardinalLightingMode

java.lang.Object
java.lang.Enum<CardinalLightingMode>
dev.engine_room.flywheel.api.material.CardinalLightingMode
All Implemented Interfaces:
Serializable, Comparable<CardinalLightingMode>, Constable

public enum CardinalLightingMode extends Enum<CardinalLightingMode>
  • Enum Constant Details

    • OFF

      public static final CardinalLightingMode OFF
      No normal-based darkening will be applied.
    • CHUNK

      public static final CardinalLightingMode CHUNK
      World-space normal based darkening will be applied.

      This mode matches the appearance of chunk geometry.

    • ENTITY

      public static final CardinalLightingMode ENTITY
      World-space normal based darkening will be applied in accordance to the "light directions" specified in RenderSystem.

      This mode matches the appearance of entities.

      See Also:
      • RenderSystem.setShaderLights(org.joml.Vector3f, org.joml.Vector3f)
  • Method Details

    • values

      public static CardinalLightingMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CardinalLightingMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null