Message #2432899 - Error in shader compilation: info: %s / code: %s

Kind #39: Error in shader compilation: info: %s / code: %s

Game: God of War®: Ghost of Sparta (UCUS98737_2.00)

Error in shader compilation: info: 0:1: F0002: Mali-400 GP register allocation failed for vertex shader.
            Please contact [email protected] with the shader causing
            the problem, along with this error message.
            Mali online shader compiler r7p0-00rel0 [Revision 96995].
 / code: #version 100
precision highp float;
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 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 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() {
  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 = u_ambient * color0 + vec4(u_matemissive, 0.0);
  lowp vec3 lightSum1 = vec3(0.0);
  vec3 toLight;
  lowp vec3 diffuse;
  toLight = u_lightpos0;
  mediump float dot0 = max(dot(toLight, worldnormal), 0.0);
  diffuse = (u_lightdiffuse0 * color0.rgb) * dot0;
  dot0 = dot(normalize(toLight + vec3(0.0, 0.0, 1.0)), worldnormal);
  if (dot0 > 0.0)
    lightSum1 += u_lightspecular0 * u_matspecular.rgb * (pow(dot0, u_matspecular.a) );
  lightSum0.rgb += (u_lightambient0 * color0.rgb + diffuse);
  toLight = u_lightpos1;
  mediump float dot1 = max(dot(toLight, worldnormal), 0.0);
  diffuse = (u_lightdiffuse1 * color0.rgb) * dot1;
  dot1 = dot(normalize(toLight + vec3(0.0, 0.0, 1.0)), worldnormal);
  if (dot1 > 0.0)
    lightSum1 += u_lightspecular1 * u_matspecular.rgb * (pow(dot1, u_matspecular.a) );
  lightSum0.rgb += (u_lightambient1 * color0.rgb + diffuse);
  toLight = u_lightpos2;
  mediump float dot2 = max(dot(toLight, worldnormal), 0.0);
  diffuse = (u_lightdiffuse2 * color0.rgb) * dot2;
  dot2 = dot(normalize(toLight + vec3(0.0, 0.0, 1.0)), worldnormal);
  if (dot2 > 0.0)
    lightSum1 += u_lightspecular2 * u_matspecular.rgb * (pow(dot2, u_matspecular.a) );
  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);
  v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y;
}

Status: new. 3 hits from 2023-12-31 15:55:45 to 2024-01-09 01:19:30 UTC. Message #2432899.

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.