correct comments in fragment_shader.

PiperOrigin-RevId: 504259419
This commit is contained in:
tofunmi 2023-01-24 14:38:11 +00:00 committed by christosts
parent 18f8e9115f
commit 7864d327e8

View File

@ -36,7 +36,7 @@ uniform int uOutputColorTransfer;
const float inverseGamma = 0.4500; const float inverseGamma = 0.4500;
const float gamma = 1.0 / inverseGamma; const float gamma = 1.0 / inverseGamma;
// Transforms a single channel from optical to electrical SDR using the SMPTE // Transforms a single channel from electrical to optical SDR using the SMPTE
// 170M OETF. // 170M OETF.
float smpte170mEotfSingleChannel(float electricalChannel) { float smpte170mEotfSingleChannel(float electricalChannel) {
// Specification: // Specification:
@ -46,7 +46,7 @@ float smpte170mEotfSingleChannel(float electricalChannel) {
: pow((electricalChannel + 0.099) / 1.099, gamma); : pow((electricalChannel + 0.099) / 1.099, gamma);
} }
// Transforms electronical to optical SDR using the SMPTE 170M EOTF. // Transforms electrical to optical SDR using the SMPTE 170M EOTF.
vec3 smpte170mEotf(vec3 electricalColor) { vec3 smpte170mEotf(vec3 electricalColor) {
return vec3( return vec3(
smpte170mEotfSingleChannel(electricalColor.r), smpte170mEotfSingleChannel(electricalColor.r),