Bad P 0
Bad P 0
#define ATTRIBUTE_LOCATION(x)
#define FRAGMENT_OUTPUT_LOCATION(x)
#define FRAGMENT_OUTPUT_LOCATION_INDEXED(x, y)
#define UBO_BINDING(packing, x) layout(packing, binding = x)
#define SAMPLER_BINDING(x) layout(binding = x)
#define TEXEL_BUFFER_BINDING(x) layout(binding = x)
#define SSBO_BINDING(x) layout(binding = x)
#define IMAGE_BINDING(format, x) layout(format, binding = x)
#define VARYING_LOCATION(x)
#version 320 es
#define ATTRIBUTE_LOCATION(x)
#define FRAGMENT_OUTPUT_LOCATION(x)
#define FRAGMENT_OUTPUT_LOCATION_INDEXED(x, y)
#define UBO_BINDING(packing, x) layout(packing, binding = x)
#define SAMPLER_BINDING(x) layout(binding = x)
#define TEXEL_BUFFER_BINDING(x) layout(binding = x)
#define SSBO_BINDING(x) layout(binding = x)
#define IMAGE_BINDING(format, x) layout(format, binding = x)
#define VARYING_LOCATION(x)
FORCE_EARLY_Z;
FRAGMENT_OUTPUT_LOCATION(0) out vec4 ocol0;
VARYING_LOCATION(0) in VertexData {
float4 pos;
float4 colors_0;
float4 colors_1;
float3 tex0;
float clipDist0;
float clipDist1;
};
void main()
{
float4 rawpos = gl_FragCoord;
int4 c0 = color[1], c1 = color[2], c2 = color[3], prev = color[0];
int4 rastemp, textemp, konsttemp;
int3 comp16 = int3(1, 256, 0), comp24 = int3(1, 256, 256*256);
int alphabump = 0;
int2 tevcoord = int2(0, 0);
int2 wrappedcoord, tempcoord;
int4 tevin_a, tevin_b, tevin_c, tevin_d, tevin_temp;
// TEV stage 0
rastemp = iround(col0 * 255.0).rgba;
tevcoord = fixpoint_uv0;
textemp = iround(255.0 * texture(samp[0], float3(float2(tevcoord).xy *
texdim[0].xy, 0.0))).rgba;
tevin_a = int4(int3(0,0,0), 0) & 255;
tevin_b = int4(int3(0,0,0), textemp.a) & 255;
tevin_c = int4(int3(0,0,0), rastemp.a) & 255;
tevin_d = int4(rastemp.rgb, 0);
tevin_temp = (tevin_a<<8) + (tevin_b-tevin_a) * (tevin_c + (tevin_c>>7));
// tev combine
prev = (((tevin_d.rgba ) ) + ((((tevin_temp.rgba) ) + 128) >> 8)) ;
prev = clamp(prev, int4(0, 0, 0, 0), int4(255, 255, 255, 255));
prev = prev & 255;
ocol0 = float4(prev) / 255.0;
}