Grain
Represents a PostEffect specifically designed for the Grain.
| Type | Name | Interface Description |
|---|---|---|
| Variables | color: number | • Function: Gets or sets the grain color contribution. Adjusts how much color noise is blended into the effect. Range: [0, 1]. |
| Variables | speed: number | • Function: Gets or sets the grain animation speed. Higher values make the grain move faster across frames. Range: [0, 10]. |
| Variables | strength: number | • Function: Gets or sets the grain strength. Controls the overall intensity of the film grain effect. Range: [0, 1]. |
| Functions | constructor() |
Examples
constructor()
let obj = new APJS.Grain();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use Grain here
}
onUpdate(deltaTime: number) {
}
}