I changed 8-11 to
- Code: Select all
for (xi = x; xi < (x + width); xi++)
{
texel = src[yi * 2048 + xi] & 0xFF;
c = (texel & 0xF) * 17;
scratch[i++] = c;
scratch[i++] = c;
scratch[i++] = c;
scratch[i++] = c;
}
Fragment shader to
- Code: Select all
"if(textureInverted) {\n"
"tex1Data = vec4(1.0) - vec4(tex1Data);\n"
"}\n"