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

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

Game: Spider-Man 3 (ULES00938_1.01)

Error in shader compilation: info: Vertex shader failed to compile with the following errors:
ERROR: 0:30: 'u' : undeclared identifier 
ERROR: 0:30: 'undefined' : undeclared identifier 
ERROR: 0:30: 'ambient' : undeclared identifier 
ERROR: 0:30: '>' :  wrong operand types  no operation '>' exists that takes a left-hand operand of type 'bool' and a right operand of type '4-component vector of float' (or there is no acceptable conversion)
ERROR: 0:30: '=' :  cannot convert from 'const bool' to '4-component vector of float'
ERROR: 0:35: 'tolight' : undeclared identifier 
ERROR: 0:35: 'dot' : no matching overloaded function found 
ERROR:  compilation errors.  No code generated.


01800000:00010b59 HWX C T N LM Tex TexProjPos UVMtx Light: 3: c:0 t:0 
#version 110
#define lowp
#define mediump
#define highp
attribute vec3 position;
attribute mediump vec3 normal;
attribute vec2 texcoord;
attribute lowp vec4 color0;
uniform mat4 u_proj;
uniform mat4 u_world;
uniform mat4 u_view;
uniform mediump mat4 u_texmtx;
uniform vec4 u_uvscaleoffset;
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;
varying lowp vec4 v_color0;
varying lowp vec3 v_color1;
varying mediump vec3 v_texcoord;
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 = u_proj * viewPos;
  lowp vec4 lightSum0 = uambient * u_matambientalpha + vec4(u_matemissive, 0.0);
  vec3 toLight;
  lowp vec3 diffuse;
  mediump float ldot;
  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_color1 = vec3(0.0);
  v_texcoord = (u_texmtx * vec4(position.xyz, 1.0)).xyz * vec3(u_uvscaleoffset.xy, 1.0);
}

Status: new. 1 hits from 2019-07-06 12:07:05 to 2019-07-06 12:07:05 UTC. Message #1377863.

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.