Recent logs - METAL GEAR SOLID PEACE WALKER

To see your stuff show here, enable Compatibility Server Reports in PPSSPP.

Click on a version, game, or report message to show similar entries. Hover over version to see platform info, and hover over a game title to see region and version info.

Game title Version Latest Report Message
METAL GEAR SOLID PEACE WALKER v1.10.3 2020-08-13 __KernelStopThread: thread 2366 does not exist
METAL GEAR SOLID PEACE WALKER v1.10.3 2020-08-12 __KernelStopThread: thread 328 does not exist
METAL GEAR SOLID PEACE WALKER v1.10.3 2020-08-11 __KernelStopThread: thread 4274 does not exist
METAL GEAR SOLID PEACE WALKER v1.10.3 2020-08-09 __KernelStopThread: thread 3183 does not exist
METAL GEAR SOLID PEACE WALKER v1.10.3 2020-08-05 __KernelStopThread: thread 3947 does not exist
METAL GEAR SOLID PEACE WALKER v1.10.3-263-g04761c238 2020-08-01 __KernelStopThread: thread 3102 does not exist
METAL GEAR SOLID PEACE WALKER v1.10.3 2020-08-01 RET: Stack empty!
METAL GEAR SOLID PEACE WALKER v1.10.3 2020-07-31 Unknown syscall in known module 'ThreadManForKernel': 0x3f53e640
METAL GEAR SOLID PEACE WALKER v1.10.3 2020-07-31 Unknown syscall in known module 'ThreadManForKernel': 0x28b6489c
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-29 Unknown GetPointer 00000000 PC 08b41eb8 LR 08b41eb8
METAL GEAR SOLID PEACE WALKER v1.10.3 2020-07-26 sceKernelLoadModule: unsupported options size=00000014, flags=7f800001, pos=0, access=1, data=2, text=2
METAL GEAR SOLID PEACE WALKER v1.10.3 2020-07-26 sceKernelLoadModule: unsupported options size=00000014, flags=7f800001, pos=0, access=1, data=1, text=1
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-24 Unknown syscall in known module 'sceNpService': 0xbe22eea3
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-24 Unknown syscall in known module 'sceNpService': 0x788f2b5e
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-24 Unknown syscall in known module 'sceNpService': 0x75dacb57
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-24 Unknown syscall in known module 'sceNpService': 0x72a1ce0d
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-24 Unknown syscall in known module 'sceNpService': 0x66c64821
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-24 Unknown syscall in known module 'sceNpService': 0x5f5e32af
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-24 Unknown syscall in known module 'sceNpService': 0x58251346
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-24 Unknown syscall in known module 'sceNpService': 0x4e851b10
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-20 __KernelStopThread: thread 2154 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-07-19 Render to area containing texture at 04162000 +256x0
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-07-19 Rendering to framebuffer offset: 04162000 +256x0
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-18 sceKernelLoadModuleByID: unsupported options size=00000014, flags=deadbeef, pos=0, access=1, data=2, text=2
METAL GEAR SOLID PEACE WALKER v1.10.3 2020-07-30 sceKernelLoadModule: unsupported options size=00000014, flags=ffffffff, pos=0, access=1, data=2, text=2
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-18 sceKernelLoadModule: unsupported options size=00000014, flags=08bead40, pos=0, access=1, data=2, text=2
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-18 sceKernelLoadModule: unsupported options size=00000014, flags=08bead40, pos=0, access=1, data=1, text=1
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-15 __KernelStopThread: thread 1590 does not exist
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-13 WriteToHardware: Invalid address 150ae250 near PC 08000000 LR 08000000
METAL GEAR SOLID PEACE WALKER v1.9.3 2020-07-12 __KernelStopThread: thread 4043 does not exist
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-12 sceKernelLoadModuleByID: unsupported options size=00000014, flags=089a5164, pos=0, access=1, data=1, text=1
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-12 sceKernelCreateSema(RealMutex) unsupported options parameter, size = 145349168
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-12 sceKernelCreateSema(RealMutex) unsupported options parameter, size = -65536
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-12 sceKernelCreateSema(RealMutex) unsupported options parameter, size = 167771616
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-11 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=2, text=2
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-25 sceKernelLoadModule: unsupported options size=00000014, flags=00000002, pos=0, access=1, data=2, text=2
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-25 sceKernelLoadModule: unsupported options size=00000014, flags=00000002, pos=0, access=1, data=1, text=1
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-25 sceKernelLoadModule: unsupported options size=00000014, flags=09fff5c8, pos=0, access=1, data=2, text=2
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-10 __KernelStopThread: thread 321 does not exist
METAL GEAR SOLID PEACE WALKER v1.10.3 2020-08-13 Unimplemented HLE function sceNetApctlGetState
METAL GEAR SOLID PEACE WALKER v1.10.3 2020-08-13 Unimplemented HLE function sceNetFreeThreadinfo
METAL GEAR SOLID PEACE WALKER v1.10.3 2020-08-13 Unimplemented HLE function sceHttpsDisableOption
METAL GEAR SOLID PEACE WALKER v1.10.3 2020-08-13 Unimplemented HLE function sceHttpsEnableOption
METAL GEAR SOLID PEACE WALKER v1.10.2 2020-07-25 sceKernelLoadModule: unsupported options size=00000014, flags=09fff5c8, pos=0, access=1, data=1, text=1
METAL GEAR SOLID PEACE WALKER v1.10 2020-07-06 Render to texture with incompatible formats 4 != 1 at 04000000
METAL GEAR SOLID PEACE WALKER v1.10 2020-07-06 4 and 8-bit CLUT format not supported for framebuffers
METAL GEAR SOLID PEACE WALKER v1.10 2020-07-06 Render to texture using CLUT with different strides 1792 != 512
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Video out requested, not supported: mode=0 size=0,0
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Unknown GE command : 11ffffff
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Render to texture with incompatible formats 0 != 3 at 0414c000
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 sceKernelLoadModule: unsupported options size=00000014, flags=08ad0000, pos=0, access=1, data=2, text=2
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Ignoring func export sceCcc/fb7846e2, already implemented in HLE.
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Ignoring func export sceCcc/f1b73d12, already implemented in HLE.
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Ignoring func export sceCcc/e0cf8091, already implemented in HLE.
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Ignoring func export sceCcc/d9392ccb, already implemented in HLE.
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Ignoring func export sceCcc/d2b18485, already implemented in HLE.
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Ignoring func export sceCcc/cc0a8bda, already implemented in HLE.
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Ignoring func export sceCcc/c6a8bee2, already implemented in HLE.
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Ignoring func export sceCcc/c56949ad, already implemented in HLE.
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Ignoring func export sceCcc/beb47224, already implemented in HLE.
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Ignoring func export sceCcc/b8476cf4, already implemented in HLE.
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Ignoring func export sceCcc/b7d3c112, already implemented in HLE.
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Ignoring func export sceCcc/b4d1cbbf, already implemented in HLE.
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Ignoring func export sceCcc/a62e6e80, already implemented in HLE.
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Ignoring func export sceCcc/a2d5d209, already implemented in HLE.
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Ignoring func export sceCcc/953e6c10, already implemented in HLE.
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Ignoring func export sceCcc/92c05851, already implemented in HLE.
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Ignoring func export sceCcc/90521ac5, already implemented in HLE.
METAL GEAR SOLID PEACE WALKER v1.10.1 2020-07-03 Ignoring func export sceCcc/8406f469, already implemented in HLE.
METAL GEAR SOLID PEACE WALKER v1.8.0 2020-06-15 WriteToHardware: Invalid address 0f0ae250 near PC 08000000 LR 08000000
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-06-12 __KernelStopThread: thread 1670 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-06-12 __KernelStopThread: thread 1780 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-06-12 __KernelStopThread: thread 1648 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-06-12 __KernelStopThread: thread 1694 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.3 2020-06-11 __KernelStopThread: thread 319 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-06-08 __KernelStopThread: thread 3593 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-06-06 __KernelStopThread: thread 3983 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-06-06 __KernelStopThread: thread 2688 does not exist
METAL GEAR SOLID PEACE WALKER v1.7.5-403-g128c0ad 2020-07-08 Error in shader compilation: info: 0:8(2): error: `gl_FragColor' undeclared 0:8(2): error: value of type vec4 cannot be assigned to variable of type error depal #version 460 varying vec2 v_texcoord0; uniform sampler2D tex; uniform sampler2D pal; void main() { vec4 index = texture2D(tex, v_texcoord0); float coord = (index.g * 1.000000) + 0.001953; gl_FragColor = texture2D(pal, vec2(coord, 0.0)); }
METAL GEAR SOLID PEACE WALKER v1.7.5-403-g128c0ad 2020-07-08 Error in shader compilation: info: 0:8(2): error: `gl_FragColor' undeclared 0:8(2): error: value of type vec4 cannot be assigned to variable of type error depal #version 460 varying vec2 v_texcoord0; uniform sampler2D tex; uniform sampler2D pal; void main() { vec4 index = texture2D(tex, v_texcoord0); float coord = (index.b * 1.000000) + 0.001953; gl_FragColor = texture2D(pal, vec2(coord, 0.0)); }
METAL GEAR SOLID PEACE WALKER v1.7.5-403-g128c0ad 2020-07-08 Error in shader compilation: info: 0:8(2): error: `gl_FragColor' undeclared 0:8(2): error: value of type vec4 cannot be assigned to variable of type error depal #version 460 varying vec2 v_texcoord0; uniform sampler2D tex; uniform sampler2D pal; void main() { vec4 index = texture2D(tex, v_texcoord0); float coord = (index.r * 1.000000) + 0.001953; gl_FragColor = texture2D(pal, vec2(coord, 0.0)); }
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-06-03 __KernelStopThread: thread 2681 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-06-02 __KernelStopThread: thread 2666 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-05-27 __KernelStopThread: thread 2104 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-05-25 __KernelStopThread: thread 1908 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-05-24 __KernelStopThread: thread 2717 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.3 2020-05-21 __KernelStopThread: thread 982 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-05-19 __KernelStopThread: thread 2065 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-05-19 __KernelStopThread: thread 1487 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.3 2020-05-18 __KernelStopThread: thread 935 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-05-16 __KernelStopThread: thread 1933 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-05-16 __KernelStopThread: thread 1851 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-05-16 __KernelStopThread: thread 1817 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-05-15 CALL to illegal address 00000000 - ignoring! data=000000
METAL GEAR SOLID PEACE WALKER v1.9.3 2020-05-12 WriteToHardware: Invalid address 00006350 near PC 088a0d68 LR 088a0d68
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-07-15 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 r4p0-00rel0 [Revision 96995]. 01f34444:00000b1d HWX C T N LM Fog Tex Light: 0: c:0 t:1 1: c:0 t:1 2: c:0 t:1 3: c:0 t:1 MatUp:3 #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 mediump vec3 u_lightatt0; uniform lowp vec3 u_lightambient0; uniform lowp vec3 u_lightdiffuse0; uniform vec3 u_lightpos1; uniform mediump vec3 u_lightatt1; uniform lowp vec3 u_lightambient1; uniform lowp vec3 u_lightdiffuse1; uniform vec3 u_lightpos2; uniform mediump vec3 u_lightatt2; uniform lowp vec3 u_lightambient2; uniform lowp vec3 u_lightdiffuse2; uniform vec3 u_lightpos3; uniform mediump vec3 u_lightatt3; uniform lowp vec3 u_lightambient3; uniform lowp vec3 u_lightdiffuse3; 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; uniform highp vec4 u_cullRangeMin; uniform highp vec4 u_cullRangeMax; 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); vec4 outPos = u_proj * viewPos; lowp vec4 lightSum0 = u_ambient * color0 + vec4(u_matemissive, 0.0); vec3 toLight; lowp vec3 diffuse; float distance; lowp float lightScale; mediump float ldot; toLight = u_lightpos0 - worldpos; distance = length(toLight); toLight /= distance; ldot = dot(toLight, worldnormal); lightScale = clamp(1.0 / dot(u_lightatt0, vec3(1.0, distance, distance*distance)), 0.0, 1.0); diffuse = (u_lightdiffuse0 * color0.rgb) * max(ldot, 0.0); lightSum0.rgb += (u_lightambient0 * color0.rgb + diffuse) * lightScale; toLight = u_lightpos1 - worldpos; distance = length(toLight); toLight /= distance; ldot = dot(toLight, worldnormal); lightScale = clamp(1.0 / dot(u_lightatt1, vec3(1.0, distance, distance*distance)), 0.0, 1.0); diffuse = (u_lightdiffuse1 * color0.rgb) * max(ldot, 0.0); lightSum0.rgb += (u_lightambient1 * color0.rgb + diffuse) * lightScale; toLight = u_lightpos2 - worldpos; distance = length(toLight); toLight /= distance; ldot = dot(toLight, worldnormal); lightScale = clamp(1.0 / dot(u_lightatt2, vec3(1.0, distance, distance*distance)), 0.0, 1.0); diffuse = (u_lightdiffuse2 * color0.rgb) * max(ldot, 0.0); lightSum0.rgb += (u_lightambient2 * color0.rgb + diffuse) * lightScale; toLight = u_lightpos3 - worldpos; distance = length(toLight); toLight /= distance; ldot = dot(toLight, worldnormal); lightScale = clamp(1.0 / dot(u_lightatt3, vec3(1.0, distance, distance*distance)), 0.0, 1.0); diffuse = (u_lightdiffuse3 * color0.rgb) * max(ldot, 0.0); lightSum0.rgb += (u_lightambient3 * color0.rgb + diffuse) * lightScale; 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; 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; }
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-07-25 Failed to truncate file.
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-05-09 __KernelStopThread: thread 1564 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-05-07 __KernelStopThread: thread 3717 does not exist
METAL GEAR SOLID PEACE WALKER v1.9.4 2020-05-07 Error in shader program link: info: L0101 All attached shaders must be compiled prior to linking fs: 00000000:00a0d822 Tex TexAlpha 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 = p * t + s; v.rgb = clamp(v.rgb * 2.0, 0.0, 1.0); float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); float aResult = texture2D(testtex, vec2(v.a * 0.996094 + 0.001953, 0)).a; if (aResult < 0.5) discard; gl_FragColor = v; } vs: 01f34444:00000b1d HWX C T N LM Fog Tex Light: 0: c:0 t:1 1: c:0 t:1 2: c:0 t:1 3: c:0 t:1 MatUp:3 #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 mediump vec3 u_lightatt0; uniform lowp vec3 u_lightambient0; uniform lowp vec3 u_lightdiffuse0; uniform vec3 u_lightpos1; uniform mediump vec3 u_lightatt1; uniform lowp vec3 u_lightambient1; uniform lowp vec3 u_lightdiffuse1; uniform vec3 u_lightpos2; uniform mediump vec3 u_lightatt2; uniform lowp vec3 u_lightambient2; uniform lowp vec3 u_lightdiffuse2; uniform vec3 u_lightpos3; uniform mediump vec3 u_lightatt3; uniform lowp vec3 u_lightambient3; uniform lowp vec3 u_lightdiffuse3; 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; uniform highp vec4 u_cullRangeMin; uniform highp vec4 u_cullRangeMax; 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); vec4 outPos = u_proj * viewPos; lowp vec4 lightSum0 = u_ambient * color0 + vec4(u_matemissive, 0.0); vec3 toLight; lowp vec3 diffuse; float distance; lowp float lightScale; mediump float ldot; toLight = u_lightpos0 - worldpos; distance = length(toLight); toLight /= distance; ldot = dot(toLight, worldnormal); lightScale = clamp(1.0 / dot(u_lightatt0, vec3(1.0, distance, distance*distance)), 0.0, 1.0); diffuse = (u_lightdiffuse0 * color0.rgb) * max(ldot, 0.0); lightSum0.rgb += (u_lightambient0 * color0.rgb + diffuse) * lightScale; toLight = u_lightpos1 - worldpos; distance = length(toLight); toLight /= distance; ldot = dot(toLight, worldnormal); lightScale = clamp(1.0 / dot(u_lightatt1, vec3(1.0, distance, distance*distance)), 0.0, 1.0); diffuse = (u_lightdiffuse1 * color0.rgb) * max(ldot, 0.0); lightSum0.rgb += (u_lightambient1 * color0.rgb + diffuse) * lightScale; toLight = u_lightpos2 - worldpos; distance = length(toLight); toLight /= distance; ldot = dot(toLight, worldnormal); lightScale = clamp(1.0 / dot(u_lightatt2, vec3(1.0, distance, distance*distance)), 0.0, 1.0); diffuse = (u_lightdiffuse2 * color0.rgb) * max(ldot, 0.0); lightSum0.rgb += (u_lightambient2 * color0.rgb + diffuse) * lightScale; toLight = u_lightpos3 - worldpos; distance = length(toLight); toLight /= distance; ldot = dot(toLight, worldnormal); lightScale = clamp(1.0 / dot(u_lightatt3, vec3(1.0, distance, distance*distance)), 0.0, 1.0); diffuse = (u_lightdiffuse3 * color0.rgb) * max(ldot, 0.0); lightSum0.rgb += (u_lightambient3 * color0.rgb + diffuse) * lightScale; 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; vec3 projPos = outPos.xyz / outPos.w; if (u_cullRangeMin.w <= 0.0 || (projPos.z >= u_c