Class VfxEvalFunctions
Namespace: ValveResourceFormat.Serialization.VfxEval
Assembly: ValveResourceFormat.dll
Implementations for built in VFXEval functions
public static class VfxEvalFunctionsInheritance
Methods
MatrixColorCorrect2(Vector3, Vector3)
Builds a 4x4 color correction matrix that applies contrast, saturation, and brightness adjustments.
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 contrast adjustment.
Returns
MatrixColorTint2(Vector3, float)
Builds a luminance-preserving saturation adjustment matrix in RGB space.
public static Matrix4x4 MatrixColorTint2(Vector3 rgb, float strength)Parameters
rgb Vector3
Reference color used to derive hue and saturation.
strength float
Saturation adjustment strength.
Returns
MatrixColorTint3(Vector3, float, int)
Builds a color tint matrix using one of the tint modes exposed by newer shaders.
public static Matrix4x4 MatrixColorTint3(Vector3 rgb, float strength, int mode)Parameters
rgb Vector3
Tint color, in linear space.
strength float
Saturation adjustment strength, used by the luminance preserving mode.
mode int
0 = multiply, 1 = preserve luminance, 2 = mod2x.

