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

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

Game: Tony Hawk's Underground 2 Remix (ULUS10014_1.01)

Error in shader compilation: info: Vertex shader failed to compile with the following errors:
03730111:41800f19 HWX C T N LM RevN Tex Bones:7 Light: 0: c:1 t:0 1: c:1 t:0 2: c:1 t:0 MatUp:3 WScale 1 
#version 330
#define lowp
#define mediump
#define highp
in mediump vec4 w1;
in mediump vec3 w2;
in vec3 position;
in mediump vec3 normal;
in vec2 texcoord;
in lowp vec4 color0;
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 vec4 u_uvscaleoffset;
uniform vec3 u_lightpos0;
uniform lowp vec3 u_lightambient0;
uniform lowp vec3 u_lightdiffuse0;
uniform lowp vec3 u_lightspecular0;
uniform vec3 u_lightpos1;
uniform lowp vec3 u_lightambient1;
uniform lowp vec3 u_lightdiffuse1;
uniform lowp vec3 u_lightspecular1;
uniform vec3 u_lightpos2;
uniform lowp vec3 u_lightambient2;
uniform lowp vec3 u_lightdiffuse2;
uniform lowp vec3 u_lightspecular2;
uniform lowp vec4 u_ambient;
uniform lowp vec4 u_matspecular;
uniform lowp vec3 u_matemissive;
uniform lowp vec4 u_matambientalpha;
uniform highp vec4 u_cullRangeMin;
uniform highp vec4 u_cullRangeMax;
out lowp vec4 v_color0;
out lowp vec3 v_color1;
out mediump vec3 v_texcoord;
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;
  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);
  vec4 outPos = u_proj * viewPos;
  lowp vec4 lightSum0 = u_ambient * color0 + vec4(u_matemissive, 0.0);
  lowp vec3 lightSum1 = vec3(0.0);
  vec3 toLight;
  lowp vec3 diffuse;
  mediump float ldot;
  toLight = u_lightpos0;
  ldot = dot(toLight, worldnormal);
  diffuse = (u_lightdiffuse0 * color0.rgb) * max(ldot, 0.0);
  if (ldot >= 0.0) {
    ldot = dot(normalize(toLight + vec3(0.0, 0.0, 1.0)), worldnormal);
    if (u_matspecular.a == 0.0) {
      ldot = 1.0;
    } else {
      ldot = pow(max(ldot, 0.0), u_matspecular.a);
    }
    if (ldot > 0.0)
      lightSum1 += u_lightspecular0 * u_matspecular.rgb * ldot ;
  }
  lightSum0.rgb += (u_lightambient0 * color0.rgb + diffuse);
  toLight = u_lightpos1;
  ldot = dot(toLight, worldnormal);
  diffuse = (u_lightdiffuse1 * color0.rgb) * max(ldot, 0.0);
  if (ldot >= 0.0) {
    ldot = dot(normalize(toLight + vec3(0.0, 0.0, 1.0)), worldnormal);
    if (u_matspecular.a == 0.0) {
      ldot = 1.0;
    } else {
      ldot = pow(max(ldot, 0.0), u_matspecular.a);
    }
    if (ldot > 0.0)
      lightSum1 += u_lightspecular1 * u_matspecular.rgb * ldot ;
  }
  lightSum0.rgb += (u_lightambient1 * color0.rgb + diffuse);
  toLight = u_lightpos2;
  ldot = dot(toLight, worldnormal);
  diffuse = (u_lightdiffuse2 * color0.rgb) * max(ldot, 0.0);
  if (ldot >= 0.0) {
    ldot = dot(normalize(toLight + vec3(0.0, 0.0, 1.0)), worldnormal);
    if (u_matspecular.a == 0.0) {
      ldot = 1.0;
    } else {
      ldot = pow(max(ldot, 0.0), u_matspecular.a);
    }
    if (ldot > 0.0)
      lightSum1 += u_lightspecular2 * u_matspecular.rgb * ldot ;
  }
  lightSum0.rgb += (u_lightambient2 * color0.rgb + diffuse);
  v_color0 = clamp(lightSum0, 0.0, 1.0);
  v_color1 = clamp(lightSum1, 0.0, 1.0);
  v_texcoord = vec3(texcoord.xy * u_uvscaleoffset.xy, 0.0);
  vec3 projPos = outPos.xyz / outPos.w;
  if (u_cullRangeMin.w <= 0.0 || (projPos.z >= u_cullRangeMin.z && projPos.z <= u_cullRangeMax.z)) {
    if (projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y || projPos.z < u_cullRangeMin.z || projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y || projPos.z > u_cullRangeMax.z) {
      outPos.xyzw = vec4(u_cullRangeMax.w);
    }
  }
  gl_Position = outPos;
}

Status: new. 1 hits from 2020-03-18 05:46:56 to 2020-03-18 05:46:56 UTC. Message #1502386.

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.