Refactor assets and config directory
This commit is contained in:
parent
ca00949851
commit
68ba1db24a
69 changed files with 89 additions and 74 deletions
26
src_assets/linux/assets/shaders/opengl/ConvertY.frag
Normal file
26
src_assets/linux/assets/shaders/opengl/ConvertY.frag
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#version 300 es
|
||||
|
||||
#ifdef GL_ES
|
||||
precision lowp float;
|
||||
#endif
|
||||
|
||||
uniform sampler2D image;
|
||||
|
||||
layout(shared) uniform ColorMatrix {
|
||||
vec4 color_vec_y;
|
||||
vec4 color_vec_u;
|
||||
vec4 color_vec_v;
|
||||
vec2 range_y;
|
||||
vec2 range_uv;
|
||||
};
|
||||
|
||||
in vec2 tex;
|
||||
layout(location = 0) out float color;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec3 rgb = texture(image, tex).rgb;
|
||||
float y = dot(color_vec_y.xyz, rgb);
|
||||
|
||||
color = y * range_y.x + range_y.y;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue