mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
correct comments in fragment_shader.
PiperOrigin-RevId: 504259419
This commit is contained in:
parent
a010ebf7b6
commit
fb074e1823
1 changed files with 2 additions and 2 deletions
|
|
@ -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),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue