simvx.graphics.renderer.color_grading

Color grading pass — LUT-based color correction via compute shader.

Module Contents

Classes

ColorGradingPass

Compute-based color grading: LUT lookup + brightness/contrast/saturation/temperature.

Functions

generate_neutral_lut

Generate an identity 3D LUT (no color change).

generate_warm_lut

Generate a warm-toned 3D LUT (shifted toward orange/amber).

generate_cool_lut

Generate a cool-toned 3D LUT (shifted toward blue/teal).

generate_vintage_lut

Generate a vintage/desaturated warm 3D LUT.

Data

API

simvx.graphics.renderer.color_grading.__all__

[‘ColorGradingPass’]

simvx.graphics.renderer.color_grading.log

‘getLogger(…)’

simvx.graphics.renderer.color_grading.generate_neutral_lut(size: int = 32) numpy.ndarray

Generate an identity 3D LUT (no color change).

simvx.graphics.renderer.color_grading.generate_warm_lut(size: int = 32) numpy.ndarray

Generate a warm-toned 3D LUT (shifted toward orange/amber).

simvx.graphics.renderer.color_grading.generate_cool_lut(size: int = 32) numpy.ndarray

Generate a cool-toned 3D LUT (shifted toward blue/teal).

simvx.graphics.renderer.color_grading.generate_vintage_lut(size: int = 32) numpy.ndarray

Generate a vintage/desaturated warm 3D LUT.

class simvx.graphics.renderer.color_grading.ColorGradingPass(engine: Any)

Compute-based color grading: LUT lookup + brightness/contrast/saturation/temperature.

Operates in-place on the HDR color image. Apply after fog, before tone mapping.

Initialization

setup(width: int, height: int, color_view: Any) None

Initialize color grading pipeline and upload default neutral LUT.

set_lut(lut_data: numpy.ndarray) None

Upload a new 3D LUT texture. Shape should be (size, size, size, 4) uint8.

render(cmd: Any) None

Dispatch color grading compute shader. Call after fog, before tonemap.

Args: cmd: Active command buffer (outside any render pass).

resize(width: int, height: int, color_view: Any) None

Update descriptors for new dimensions.

cleanup() None

Release all GPU resources.