Message #2594797 - 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: Grand Theft Auto: Vice City Stories (ULUS10160_1.03)

Error in shader program link: info: L0100 A program cannot be linked unless there are any shaders attached to it
fs: 00000000:00a0d802 Tex LM Fog 2x TFuncMod AlphaTest > 
#version 100
precision lowp float;
uniform sampler2D tex;
uniform sampler2D testtex;
 varying vec4 v_color0;
 varying vec3 v_color1;
uniform vec3 u_fogcolor;
varying mediump float v_fogdepth;
varying mediump vec3 v_texcoord;
void main() {
  vec4 s = vec4(v_color1, 0.0);
  vec4 t = texture2D(tex, v_texcoord.xy);
  vec4 p = v_color0;
  vec4 v = vec4(t.rgb * p.rgb, p.a) + s;
  float aResult = texture2D(testtex, vec2(v.a * 0.996094 + 0.001953, 0)).a;
  if (aResult < 0.5) discard;
  v.rgb = v.rgb * 2.0;
  float fogCoef = clamp(v_fogdepth, 0.0, 1.0);
  v = mix(vec4(u_fogcolor, v.a), v, fogCoef);
  gl_FragColor = v;
}

vs: 03170000:41c00b15 HWX T N LM Fog Tex Bones:8 Light: 0: c:0 t:0 MatUp:7 WScale 1 
#version 100
precision highp float;
attribute mediump vec4 w1, w2;
attribute vec3 position;
attribute mediump vec3 normal;
attribute vec2 texcoord;
uniform mat4 u_proj;
uniform mat4 u_world;
uniform mat4 u_view;
uniform mat4 u_bone0;
uniform mat4 u_bone1;
uniform mat4 u_bone2;
uniform mat4 u_bone3;
uniform mat4 u_bone4;
uniform mat4 u_bone5;
uniform mat4 u_bone6;
uniform mat4 u_bone7;
uniform vec4 u_uvscaleoffset;
uniform vec3 u_lightpos0;
uniform lowp vec3 u_lightambient0;
uniform lowp vec3 u_lightdiffuse0;
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 vec2 u_fogcoef;
varying lowp vec4 v_color0;
varying lowp vec3 v_color1;
varying mediump vec3 v_texcoord;
varying mediump float v_fogdepth;
void main() {
  mat4 skinMatrix = w1.x * u_bone0 + w1.y * u_bone1 + w1.z * u_bone2 + w1.w * u_bone3 + w2.x * u_bone4 + w2.y * u_bone5 + w2.z * u_bone6 + w2.w * u_bone7;
  vec3 skinnedpos = (skinMatrix * vec4(position, 1.0)).xyz  * 1.9921875;
  vec3 worldpos = (u_world * vec4(skinnedpos, 1.0)).xyz;
  mediump vec3 skinnednormal = (skinMatrix * vec4(normal, 0.0)).xyz  * 1.9921875;
  mediump vec3 worldnormal = normalize((u_world * vec4(skinnednormal, 0.0)).xyz);
  vec4 viewPos = u_view * vec4(worldpos, 1.0);
  gl_Position = 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);
  v_color0 = clamp(lightSum0, 0.0, 1.0);
  v_color1 = vec3(0.0);
  v_texcoord = vec3(texcoord.xy * u_uvscaleoffset.xy, 0.0);
  v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y;
}

Status: new. 1 hits from 2024-12-19 21:39:22 to 2024-12-19 21:39:22 UTC. Message #2594797.

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.