Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fb074e18
authored
Jan 24, 2023
by
tofunmi
Committed by
christosts
Jan 25, 2023
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
correct comments in fragment_shader.
PiperOrigin-RevId: 504259419
parent
a010ebf7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
library/effect/src/main/assets/shaders/fragment_shader_transformation_sdr_external_es2.glsl
library/effect/src/main/assets/shaders/fragment_shader_transformation_sdr_external_es2.glsl
View file @
fb074e18
...
...
@@ -36,7 +36,7 @@ uniform int uOutputColorTransfer;
const
float
inverseGamma
=
0
.
4500
;
const
float
gamma
=
1
.
0
/
inverseGamma
;
// Transforms a single channel from
optical to electr
ical SDR using the SMPTE
// Transforms a single channel from
electrical to opt
ical SDR using the SMPTE
// 170M OETF.
float
smpte170mEotfSingleChannel
(
float
electricalChannel
)
{
// Specification:
...
...
@@ -46,7 +46,7 @@ float smpte170mEotfSingleChannel(float electricalChannel) {
:
pow
((
electricalChannel
+
0
.
099
)
/
1
.
099
,
gamma
);
}
// Transforms electr
on
ical to optical SDR using the SMPTE 170M EOTF.
// Transforms electrical to optical SDR using the SMPTE 170M EOTF.
vec3
smpte170mEotf
(
vec3
electricalColor
)
{
return
vec3
(
smpte170mEotfSingleChannel
(
electricalColor
.
r
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment