ProtoTracer  1.0
Real-time 3D rendering and animation engine
Loading...
Searching...
No Matches
Effect.cpp
Go to the documentation of this file.
1#include "Effect.h"
2
4
5void Effect::SetRatio(float ratio){
6 this->ratio = Mathematics::Constrain(ratio, 0.0f, 1.0f);
7}
Defines the base Effect class for applying transformations or effects to pixel groups.
float ratio
A scaling ratio used for dynamic effect adjustments.
Definition Effect.h:28
void SetRatio(float ratio)
Sets the scaling ratio for the effect.
Definition Effect.cpp:5
Effect()
Default constructor for the Effect class.
Definition Effect.cpp:3
static T Constrain(T value, T minimum, T maximum)
Constrains a value between minimum and maximum.