Update mpv config:
This commit is contained in:
parent
64e685695e
commit
d1e0b97d62
36 changed files with 5555 additions and 10 deletions
28
mpv/shaders/hdr-toys/utils/exposure.glsl
Normal file
28
mpv/shaders/hdr-toys/utils/exposure.glsl
Normal file
|
@ -0,0 +1,28 @@
|
|||
// https://en.wikipedia.org/wiki/Exposure_value
|
||||
|
||||
//!PARAM exposure_value
|
||||
//!TYPE float
|
||||
//!MINIMUM -64
|
||||
//!MAXIMUM 64
|
||||
0.0
|
||||
|
||||
//!HOOK OUTPUT
|
||||
//!BIND HOOKED
|
||||
//!WHEN exposure_value
|
||||
//!DESC exposure
|
||||
|
||||
float exposure(float x, float ev) {
|
||||
return x * exp2(ev);
|
||||
}
|
||||
|
||||
vec3 exposure(vec3 x, float ev) {
|
||||
return x * exp2(ev);
|
||||
}
|
||||
|
||||
vec4 hook() {
|
||||
vec4 color = HOOKED_tex(HOOKED_pos);
|
||||
|
||||
color.rgb = exposure(color.rgb, exposure_value);
|
||||
|
||||
return color;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue