src/render/opengl/SDL_shaders_gl.c
changeset 8969 7fb90df60b99
parent 8149 681eb46b8ac4
child 9046 c3ec7c3e6c24
equal deleted inserted replaced
8968:47decd0106f8 8969:7fb90df60b99
   131 "uniform sampler2D tex0; // Y \n"
   131 "uniform sampler2D tex0; // Y \n"
   132 "uniform sampler2D tex1; // U \n"
   132 "uniform sampler2D tex1; // U \n"
   133 "uniform sampler2D tex2; // V \n"
   133 "uniform sampler2D tex2; // V \n"
   134 "\n"
   134 "\n"
   135 "// YUV offset \n"
   135 "// YUV offset \n"
   136 "const vec3 offset = vec3(-0.0625, -0.5, -0.5);\n"
   136 "const vec3 offset = vec3(-0.0627451017, -0.501960814, -0.501960814);\n"
   137 "\n"
   137 "\n"
   138 "// RGB coefficients \n"
   138 "// RGB coefficients \n"
   139 "const vec3 Rcoeff = vec3(1.164,  0.000,  1.596);\n"
   139 "const vec3 Rcoeff = vec3(1.164,  0.000,  1.596);\n"
   140 "const vec3 Gcoeff = vec3(1.164, -0.391, -0.813);\n"
   140 "const vec3 Gcoeff = vec3(1.164, -0.391, -0.813);\n"
   141 "const vec3 Bcoeff = vec3(1.164,  2.018,  0.000);\n"
   141 "const vec3 Bcoeff = vec3(1.164,  2.018,  0.000);\n"