Class VfxEvalFunctions
Namespace: ValveResourceFormat.Serialization.VfxEval
Assembly: ValveResourceFormat.dll
Implementations for built in VFXEval functions
csharp
public static class VfxEvalFunctionsInheritance
Methods
MatrixColorCorrect2(Vector3, Vector3)
Builds a 4x4 color correction matrix that applies contrast, saturation, and brightness adjustments.
csharp
public static Matrix4x4 MatrixColorCorrect2(Vector3 CSB, Vector3 colorOffset)Parameters
CSB Vector3
Color correction parameters: X = contrast, Y = saturation, Z = brightness.
colorOffset Vector3
Pivot point for the brightness gain.
Returns
MatrixColorTint2(Vector3, float)
Builds a luminance-preserving saturation adjustment matrix in RGB space.
csharp
public static Matrix4x4 MatrixColorTint2(Vector3 rgb, float strength)Parameters
rgb Vector3
Reference color used to derive hue and saturation.
strength float
Saturation adjustment strength.

