PhantomCameraNoise2D
Inherits: Resource
Is a resource type that defines, calculates and outputs the noise values to a Camera2D
through active PCam2Ds
.
It can be applied to either PhantomCameraNoiseEmitter2D or a PhantomCamera2D noise property directly
Properties
amplitude
Type: float
Default: 10
Defines the size of the noise pattern.
Higher values will increase the range the noise can reach.
frequency
Type: float
Default: 0.5
Sets the density of the noise pattern.
Higher values will result in more erratic noise.
randomize_noise_seed
Type: bool
Default: true
If true, randomizes the noise pattern every time the noise is run.
If disabled, noise_seed can be used to define a fixed noise pattern.
Setter
void
set_randomize_noise_seed (bool
value)
Example
pcam.noise.set_randomize_noise_seed(false)
noise_seed
Type: int
Default: 0
Sets a predetermined seed noise value.
Useful if wanting to achieve a persistent noise pattern every time the noise is emitted.
positional_multiplier_x
Type: float
Default: 1
Multiplies positional noise amount in the X-axis.
Set the value to 0 to disable noise in the axis.
Setter
void
set_positional_multiplier_x (float
value)
Example
pcam.noise.set_positional_multiplier_x(0.42)