Table of Contents

Class VfxEvalFunctions

Namespace
ValveResourceFormat.Serialization.VfxEval
Assembly
ValveResourceFormat.dll

Implementations for built in VFXEval functions

public static class VfxEvalFunctions

Inheritance

Inherited Members

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 brightness gain.

Returns

Matrix4x4

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

Matrix4x4