DoopelPonger
Public Member Functions | Public Attributes | List of all members
SmallRipple Class Reference

Works with the shader to distort a small area on the screen. More...

Inheritance diagram for SmallRipple:
Inheritance graph
[legend]
Collaboration diagram for SmallRipple:
Collaboration graph
[legend]

Public Member Functions

void Awake ()
 Initialize references needed by the ripple. More...
 
void Init ()
 Initialize values used by the ripple. More...
 
void FixedUpdate ()
 Update the values in the shader. More...
 

Public Attributes

MeshRenderer meshRenderer
 
float maxAmplitude
 
float timeToDissipate
 
float timeMultiplier
 
float frequencyMultiplier
 

Detailed Description

Works with the shader to distort a small area on the screen.

Member Function Documentation

◆ Awake()

void SmallRipple.Awake ( )

Initialize references needed by the ripple.

◆ FixedUpdate()

void SmallRipple.FixedUpdate ( )

Update the values in the shader.

◆ Init()

void SmallRipple.Init ( )

Initialize values used by the ripple.

Member Data Documentation

◆ frequencyMultiplier

float SmallRipple.frequencyMultiplier

How much stretch should exist in the distortion effect.

◆ maxAmplitude

float SmallRipple.maxAmplitude

The max amplitude when stretching the screen.

◆ meshRenderer

MeshRenderer SmallRipple.meshRenderer

The shader that distorts the screen.

◆ timeMultiplier

float SmallRipple.timeMultiplier

How fast the effect should process through time.

◆ timeToDissipate

float SmallRipple.timeToDissipate

The amount of time the ripple should stay on the screen.


The documentation for this class was generated from the following file: