Klasse FilmGrain

java.lang.Object
net.risingworld.api.objects.visuals.FilmGrain

public final class FilmGrain extends Object
Post-processing effect: Film grain (noise) effect. Used in conjunction with a PostProcessing object.

Image
  • Verschachtelte Klassen - Übersicht

    Verschachtelte Klassen
    Modifizierer und Typ
    Klasse
    Beschreibung
    static enum 
    Determines the noise type (and size) of the film grain effect
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    boolean
    Determines if the effect is set.
    void
    Resets the effect, so it is no longer active (and no longer overrides any game effects).
    void
    set(FilmGrain.Type type, float intensity, float response)
    Sets the film grain effect (screen-wide noise).

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • FilmGrain

      public FilmGrain()
  • Methodendetails

    • set

      public void set(FilmGrain.Type type, float intensity, float response)
      Sets the film grain effect (screen-wide noise). To reset the value to the game default value, call reset()
      Parameter:
      type - noise type (grain type and size).
      intensity - noise intensity, between 0 and 1 (but higher values are also supported).
      response - noisiness response (0-1). The higher the value, the less noise is visible in brighter areas of the screen.
    • reset

      public void reset()
      Resets the effect, so it is no longer active (and no longer overrides any game effects).
    • isOverridden

      public boolean isOverridden()
      Determines if the effect is set.
      Gibt zurück:
      true if this effect was set, false if not (or if it was reset).