Changeset View
Changeset View
Standalone View
Standalone View
intern/opencolorio/gpu_shader_display_transform_frag.glsl
| Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | |||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Main Processing | /** \name Main Processing | ||||
| * \{ */ | * \{ */ | ||||
| /* Prototypes: Implementation is generaterd and defined after. */ | /* Prototypes: Implementation is generaterd and defined after. */ | ||||
| #ifndef GPU_METAL /* Forward declaration invalid in MSL. */ | |||||
| vec4 OCIO_to_scene_linear(vec4 pixel); | vec4 OCIO_to_scene_linear(vec4 pixel); | ||||
| vec4 OCIO_to_display(vec4 pixel); | vec4 OCIO_to_display(vec4 pixel); | ||||
| #endif | |||||
| vec4 OCIO_ProcessColor(vec4 col, vec4 col_overlay) | vec4 OCIO_ProcessColor(vec4 col, vec4 col_overlay) | ||||
| { | { | ||||
| #ifdef USE_CURVE_MAPPING | #ifdef USE_CURVE_MAPPING | ||||
| col = curvemapping_evaluate_premulRGBF(col); | col = curvemapping_evaluate_premulRGBF(col); | ||||
| #endif | #endif | ||||
| if (parameters.use_predivide) { | if (parameters.use_predivide) { | ||||
| ▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines | |||||