mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-22 15:51:30 +11:00
13 lines
271 B
C
13 lines
271 B
C
#ifndef BLACK_LVL
|
|
#define BLACK_LVL
|
|
|
|
#pragma parameter ia_black_level "Black Level" 0.00 -0.50 0.50 0.01
|
|
|
|
vec3 black_level(vec3 in_col){
|
|
vec3 out_col = in_col - vec3(ia_black_level);
|
|
out_col *= (vec3(1.0) / vec3(1.0 - ia_black_level));
|
|
return out_col;
|
|
}
|
|
|
|
#endif
|