Skip to content

CVR Global Shader Updater

Defines global Shader properties that any shader in the scene can read. Vector values can be driven by animation; changes are committed via Shader.SetGlobalVector whenever OnDidApplyAnimationProperties fires.

When enabled, writes the four CVR_CCK_Global_n Vector4 globals on animation ticks. Each global only writes when its value changes.

Four Vector4 variables. Each is exposed globally under the name CVR_CCK_Global_1 through CVR_CCK_Global_4.

When enabled, writes a global texture every Update. Leave off if the texture doesn’t change.

RenderTexture assigned to the global. Required for texture mode.

Global texture property name that shaders sample. Must be non-empty whitespace-trimmed for the update to fire.

The component registers itself with CVRTexturePropertyParserManager on Start and deregisters on destroy. When destroyed, the global texture binding is cleared (set to null).

  • CVR-GameFiles/ABI.CCK.Components/CVRGlobalShaderUpdater.cs