Message #2280960 - Error in shader compilation: info: %s %s %s

Kind #970: Error in shader compilation: info: %s %s %s

Game: SpongeBob SquarePants: The Yellow Avenger (ULES00280_1.01)

Error in shader compilation: info: Fragment shader compilation failed.
ERROR: 0:22: '0xFFFFFE0F' : Integer overflow:  
ERROR: 0:22: '0xFFFFFE0F' : Syntax error:  syntax error
ERROR: 2 compilation errors.  No code generated.


depal
#version 300 es
// Driver: Adreno (TM) 330 - GLSL 300
#define DISCARD discard
precision lowp float;
precision highp int;
#define splat3(x) vec3(x)
#define mul(x, y) ((x) * (y))
uniform sampler2D tex;
uniform sampler2D pal;
precision highp float;
in highp vec2 v_texcoord;  // TEXCOORD0
uniform vec2 texSize;
uniform float scaleFactor;
out vec4 fragColor0;

void main() {
  vec2 texcoord = v_texcoord;
#define z_scale 65535.000000
#define z_offset 0.000000

  int x = int((texcoord.x / scaleFactor) * texSize.x);
  int temp = (x & 0xFFFFFE0F) | ((x >> 1) & 0xF0) | ((x << 4) & 0x100);
  texcoord.x = (float(temp) / texSize.x) * scaleFactor;
  vec4 color = texture(tex, texcoord);
  float depth = (color.x - z_offset) * z_scale;
  int index = int(clamp(depth, 0.0, 65535.0));
  index = (int(uint(index) >> uint(2)) & 0xff);
  vec2 uv = vec2((float(index) + 0.5) * 0.001953, 0.0);
  vec4 outColor = texture(pal, uv);
  fragColor0 = outColor;
}

Status: new. 1 hits from 2023-02-09 00:48:01 to 2023-02-09 00:48:01 UTC. Message #2280960.

Individual reports are stored since 2026-11-12, the newest 100 per message; none for this message yet. Older hits only exist as the counters above. Hover a cell for details.