Magnetoculus
Visualisation de champs en VR avec Oculus
|
Public Member Functions | |
void | ComputeScaler (List< Vector4 > datas) |
float | GetScale (float E) |
Script to provide a correct color contrast for any distribution of field values. It computes the distribution and then integrates it, thus creating a matching between a value and a color. The parameter m_Resolution is used to tweak the accuracy.
void ColorScaler.ComputeScaler | ( | List< Vector4 > | datas | ) |
float ColorScaler.GetScale | ( | float | E | ) |
E | the value we want to scale. |
First we retreive the Vector2 that defines the boundaries of the set in which paramater E falls. Then we use a Lerp between those boundaries, parameterize by the discrete integration of E.