Skip to content
Snippets Groups Projects
Commit ff9d97ec authored by Silas Della Contrada's avatar Silas Della Contrada
Browse files

Started fixing ESSL errors in YUV -> RGB conversion

parent 1b3f6926
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ void main() { ...@@ -34,7 +34,7 @@ void main() {
finalColor = vec4(rgb, 1.0f); finalColor = vec4(rgb, 1.0f);
} else if (inputFormat == 2) { // YUV420P } else if (inputFormat == 2) { // YUV420P
mediump vec3 yuv; mediump vec3 yuv;
yuv.x = texture(textureY, newTexCoord.st).r * 4; yuv.x = texture(textureY, newTexCoord.st).r * 4.0;
// yuv.x = texture(textureY, newTexCoord.st).r - 0.0625; // yuv.x = texture(textureY, newTexCoord.st).r - 0.0625;
yuv.y = texture(textureU, newTexCoord.st).r - 0.5; yuv.y = texture(textureU, newTexCoord.st).r - 0.5;
yuv.z = texture(textureV, newTexCoord.st).r - 0.5; yuv.z = texture(textureV, newTexCoord.st).r - 0.5;
......
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