Skip to content
Snippets Groups Projects
Commit e38864ab authored by z2045217's avatar z2045217 Committed by Leo Ma
Browse files

Improve beauty filter shader (#267)

parent 3ea631d6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -7,7 +7,7 @@ uniform vec2 singleStepOffset;
 
varying vec2 textureCoordinate;
 
const vec4 params = vec4(0.33, 0.63, 0.4, 0.35);
const vec4 params = vec4(0.748, 0.874, 0.241, 0.241);
const vec3 W = vec3(0.299,0.587,0.114);
const mat3 saturateMatrix = mat3(
1.1102,-0.0598,-0.061,
Loading
Loading
@@ -106,4 +106,6 @@ void main() {
 
vec3 satColor = gl_FragColor.rgb * saturateMatrix;
gl_FragColor.rgb = mix(gl_FragColor.rgb, satColor, params.a);
gl_FragColor.rgb = vec3(gl_FragColor.rgb + vec3(-0.096));
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment