Klasse FilmGrain
java.lang.Object
net.risingworld.api.objects.visuals.FilmGrain
Post-processing effect: Film grain (noise) effect. Used in conjunction with a
PostProcessing
object.
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic enum
Determines the noise type (and size) of the film grain effect -
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
Determines if the effect is set.void
reset()
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).
-
Konstruktordetails
-
FilmGrain
public FilmGrain()
-
-
Methodendetails
-
set
Sets the film grain effect (screen-wide noise). To reset the value to the game default value, callreset()
- 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).
-