This document contains code for color correction and adjustment of images sampled from a texture. It defines macros for properties like image width and height, as well as brightness, contrast, hue, and saturation levels. Matrices are defined to convert between RGB and YUV color spaces. The main function samples a texture, applies the color adjustments, and returns the corrected pixel color.
This document contains code for color correction and adjustment of images sampled from a texture. It defines macros for properties like image width and height, as well as brightness, contrast, hue, and saturation levels. Matrices are defined to convert between RGB and YUV color spaces. The main function samples a texture, applies the color adjustments, and returns the corrected pixel color.
This document contains code for color correction and adjustment of images sampled from a texture. It defines macros for properties like image width and height, as well as brightness, contrast, hue, and saturation levels. Matrices are defined to convert between RGB and YUV color spaces. The main function samples a texture, applies the color adjustments, and returns the corrected pixel color.