Table of Contents

Class PostCameraShakeShader

Namespace
OmegaEngine.Graphics.Shaders
Assembly
OmegaEngine.dll

A post-screen shader that simulates a "shaking camera" effect.

public class PostCameraShakeShader : PostShader, IDisposable
Inheritance
PostCameraShakeShader
Implements
Inherited Members
Extension Methods

Remarks

The effect is actually fake, since the perspective cannot be extended beyound the original borders of the scene. Close-up slow-motition observation would reveal the borders to be stretched or squashed.

Properties

MinShaderModel

The minimum shader model version required to use this shader

public static Version MinShaderModel { get; }

Property Value

Version

Shakiness

How erratically to shake the camera - values between 0 and 1

public float Shakiness { get; set; }

Property Value

float

Sharpness

How close the the origin to keep the shaking view - values between 0 and 10

public float Sharpness { get; set; }

Property Value

float

Speed

How fast to shake the camera - values between -1 and 100

public float Speed { get; set; }

Property Value

float

TimeDelta

public Vector2 TimeDelta { get; set; }

Property Value

Vector2

Methods

OnEngineSet()

Hook that is called when Engine is set for the first time.

protected override void OnEngineSet()