Message #2306712 - Error in shader program link: info: %s fs: %s %s vs: %s %s

Kind #967: Error in shader program link: info: %s fs: %s %s vs: %s %s

Game: NBA2K13 (ULES01578_1.01)

Error in shader program link: info: Link failed because of missing shader.
fs: 00000000:0001d022 Tex TexAlpha TFuncMod AlphaTest0 > 
#version 300 es
#extension GL_ARM_shader_framebuffer_fetch : require
precision lowp float;
uniform sampler2D tex;
uniform sampler2D testtex;
 in vec4 v_color0;
in mediump vec3 v_texcoord;
out vec4 fragColor0;
void main() {
  vec4 t = texture(tex, v_texcoord.xy);
  vec4 p = v_color0;
  vec4 v = p * t;
  if (v.a < 0.002) discard;
  fragColor0 = v;
}

vs: 01f40000:00000b10 HWX T N Tex Light: 0: c:0 t:0 1: c:0 t:0 2: c:0 t:0 3: c:0 t:0 MatUp:4 
#version 300 es
precision highp float;
in vec3 position;
in mediump vec3 normal;
in vec2 texcoord;
uniform mat4 u_proj;
uniform mat4 u_world;
uniform mat4 u_view;
uniform vec4 u_uvscaleoffset;
uniform vec3 u_lightpos0;
uniform lowp vec3 u_lightambient0;
uniform lowp vec3 u_lightdiffuse0;
uniform vec3 u_lightpos1;
uniform lowp vec3 u_lightambient1;
uniform lowp vec3 u_lightdiffuse1;
uniform vec3 u_lightpos2;
uniform lowp vec3 u_lightambient2;
uniform lowp vec3 u_lightdiffuse2;
uniform vec3 u_lightpos3;
uniform lowp vec3 u_lightambient3;
uniform lowp vec3 u_lightdiffuse3;
uniform lowp vec4 u_ambient;
uniform lowp vec3 u_matdiffuse;
uniform lowp vec4 u_matspecular;
uniform lowp vec3 u_matemissive;
uniform lowp vec4 u_matambientalpha;
uniform highp vec4 u_depthRange;
out lowp vec4 v_color0;
out mediump vec3 v_texcoord;

vec4 depthRoundZVP(vec4 v) {
  float z = v.z / v.w;
  z = z * u_depthRange.x + u_depthRange.y;
  z = floor(z);
  z = (z - u_depthRange.z) * u_depthRange.w;
  return vec4(v.x, v.y, z * v.w, v.w);
}

void main() {
  vec3 worldpos = (u_world * vec4(position.xyz, 1.0)).xyz;
  mediump vec3 worldnormal = normalize((u_world * vec4(normal, 0.0)).xyz);
  vec4 viewPos = u_view * vec4(worldpos, 1.0);
  gl_Position = depthRoundZVP(u_proj * viewPos);
  lowp vec4 lightSum0 = u_ambient * u_matambientalpha + vec4(u_matemissive, 0.0);
  vec3 toLight;
  lowp vec3 diffuse;
  mediump float ldot;
  toLight = u_lightpos0;
  ldot = max(dot(toLight, worldnormal), 0.0);
  diffuse = (u_lightdiffuse0 * u_matdiffuse) * ldot;
  lightSum0.rgb += (u_lightambient0 * u_matambientalpha.rgb + diffuse);
  toLight = u_lightpos1;
  ldot = max(dot(toLight, worldnormal), 0.0);
  diffuse = (u_lightdiffuse1 * u_matdiffuse) * ldot;
  lightSum0.rgb += (u_lightambient1 * u_matambientalpha.rgb + diffuse);
  toLight = u_lightpos2;
  ldot = max(dot(toLight, worldnormal), 0.0);
  diffuse = (u_lightdiffuse2 * u_matdiffuse) * ldot;
  lightSum0.rgb += (u_lightambient2 * u_matambientalpha.rgb + diffuse);
  toLight = u_lightpos3;
  ldot = max(dot(toLight, worldnormal), 0.0);
  diffuse = (u_lightdiffuse3 * u_matdiffuse) * ldot;
  lightSum0.rgb += (u_lightambient3 * u_matambientalpha.rgb + diffuse);
  v_color0 = clamp(lightSum0, 0.0, 1.0);
  v_texcoord = vec3(texcoord.xy * u_uvscaleoffset.xy, 0.0);
}

Status: new. 1 hits from 2023-03-25 02:11:42 to 2023-03-25 02:11:42 UTC. Message #2306712.

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.