Messages by text - Vulkan error in shader compilation: info: %s / code: %s

Distinct message texts 101-200, most hits first. Games and Rows count where each text was seen; click a text for its games. Refreshed every 10 minutes. Back to the list by game

Only count reports from version or newer
Message # of games Rows Hits Latest Report
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:43: 'max' : no matching overloaded function found ERROR: 0:43: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 10180000:0001d002 Tex FragUber TFuncMod AlphaTest0 > layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; t.a = max(t.a, u_texNoAlphaMul.x); vec4 v = p * t; v.rgb *= u_texNoAlphaMul.y; if (v.a < 0.002) DISCARD; fragColor0 = v; } 1 1 2 2026-10-10
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:43: 'max' : no matching overloaded function found ERROR: 0:43: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 10184000:0001d002 Tex Flat FragUber TFuncMod AlphaTest0 > layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) flat in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; t.a = max(t.a, u_texNoAlphaMul.x); vec4 v = p * t; v.rgb *= u_texNoAlphaMul.y; if (v.a < 0.002) DISCARD; fragColor0 = v; } 1 1 2 2026-10-10
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:43: 'max' : no matching overloaded function found ERROR: 0:43: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 10180000:00200002 Tex Fog FragUber TFuncMod layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; t.a = max(t.a, u_texNoAlphaMul.x); vec4 v = p * t; v.rgb = clamp(v.rgb * u_texNoAlphaMul.y, 0.0, 1.0); float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); fragColor0 = v; } 2 2 2 2026-10-10
Vulkan error in shader compilation: info: ERROR: 0:37: 'gl_Position' : identifier not previously declared ERROR: 1 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 40000000:00000120 HWX Flat Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 0) in vec3 position; layout (location = 1) flat out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(0.0, 0.0, 1.0, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = u_matambientalpha; v_texcoord = splat3(0.0); v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } vec3 projPos = outPos.xyz / outPos.w; float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w; if (u_cullRangeMin.w <= 0.0 || projZ * outPos.w > -outPos.w) { if ((projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y) || (projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y)) { outPos.xyzw = u_cullRangeMax.wwww; } } if (u_cullRangeMin.w <= 0.0) { if (projPos.z < u_cullRangeMin.z || projPos.z > u_cullRangeMax.z) { outPos.xyzw = u_cullRangeMax.wwww; } } gl_ClipDistance[1] = projZ * outPos.w + outPos.w + 0.000001; if (u_cullRangeMin.w > 0.0 && u_depthRange.w != 0.0f) { gl_CullDistance[0] = projPos.z - u_cullRangeMin.z; gl_CullDistance[1] = u_cullRangeMax.z - projPos.z; } else { gl_CullDistance[0] = 0.0; gl_CullDistance[1] = 0.0; } gl_Position = outPos; } 1 1 2 2026-04-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:46: 'h_depth' : undeclared identifier ERROR: 0:46: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec2 u_fogcoef; float u_stencilReplaceValue; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; int u_pad3; vec3 u_fogcolor; vec3 u_texenv; ivec4 u_alphacolorref; ivec4 u_alphacolormask; vec3 u_blendFixA; vec3 u_blendFixB; vec4 u_texclamp; vec2 u_texclampoff; }; layout (binding = 0) uniform sampler2D tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; vec4 v = p * t; if (v.a < 0.002) DISCARD; if (h_depth > 0.000000) v.rgb = vec3(0.0); fragColor0 = v; } 2 2 2 2025-05-27
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:46: 'h_depth' : undeclared identifier ERROR: 0:46: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; layout (early_fragment_tests) in; layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec2 u_fogcoef; float u_stencilReplaceValue; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; int u_pad3; vec3 u_fogcolor; vec3 u_texenv; ivec4 u_alphacolorref; ivec4 u_alphacolormask; vec3 u_blendFixA; vec3 u_blendFixB; vec4 u_texclamp; vec2 u_texclampoff; }; layout (binding = 0) uniform sampler2D tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; vec4 v = vec4(t.rgb * p.rgb, p.a); if (h_depth > 0.000000) v.rgb = vec3(0.0); fragColor0 = v; } 2 2 2 2025-05-27
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:46: 'h_depth' : undeclared identifier ERROR: 0:46: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; layout (early_fragment_tests) in; layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec2 u_fogcoef; float u_stencilReplaceValue; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; int u_pad3; vec3 u_fogcolor; vec3 u_texenv; ivec4 u_alphacolorref; ivec4 u_alphacolormask; vec3 u_blendFixA; vec3 u_blendFixB; vec4 u_texclamp; vec2 u_texclampoff; }; layout (binding = 0) uniform sampler2D tex; layout (location = 1) flat in lowp vec4 v_color0; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; vec4 v = vec4(t.rgb * p.rgb, p.a); if (h_depth > 0.000000) v.rgb = vec3(0.0); fragColor0 = v; if (h_normal.x > -0.5) fragColor0.rgb = h_normal.xyz; } 1 1 2 2024-10-02
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:42: 'h_depth' : undeclared identifier ERROR: 0:42: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; layout (early_fragment_tests) in; layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec2 u_fogcoef; float u_stencilReplaceValue; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; int u_pad3; vec3 u_fogcolor; vec3 u_texenv; ivec4 u_alphacolorref; ivec4 u_alphacolormask; vec3 u_blendFixA; vec3 u_blendFixB; vec4 u_texclamp; vec2 u_texclampoff; }; layout (location = 1) flat in lowp vec4 v_color0; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 v = v_color0 ; if (h_depth > 0.000000) v.rgb = vec3(0.0); fragColor0 = v; if (h_normal.x > -0.5) fragColor0.rgb = h_normal.xyz; } 1 1 2 2024-10-02
Vulkan error in shader compilation: info: ERROR: 0:41: 'length' : no matching overloaded function found ERROR: 0:41: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 00000000:00000b20 HWX T N Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 0) in vec3 position; layout (location = 2) in vec3 normal; layout (location = 1) in vec2 texcoord; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(normal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = u_matambientalpha; 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; float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w; if (u_cullRangeMin.w <= 0.0 || projZ * outPos.w > -outPos.w) { if ((projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y) || (projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y)) { outPos.xyzw = u_cullRangeMax.wwww; } } if (u_cullRangeMin.w <= 0.0) { if (projPos.z < u_cullRangeMin.z || projPos.z > u_cullRangeMax.z) { outPos.xyzw = u_cullRangeMax.wwww; } } gl_Position = outPos; if (gl_Position.z == gl_Position.w) gl_Position.z *= 0.999999; } 1 1 2 2024-07-31
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:44: 'texture' : no matching overloaded function found ERROR: 0:44: '=' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:44: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 00184000:0001d002 Tex Flat TFuncMod AlphaTest0 > layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) flat in lowp vec4 v_color0; layout (location = 2) flat in lowp vec3 v_color1; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 s = vec4(v_color1, 0.0); vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; t.a = max(t.a, u_texNoAlpha); vec4 v = p * t + s; v.rgb = clamp(v.rgb * u_texMul, 0.0, 1.0); float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); if (v.a < 0.002) DISCARD; fragColor0 = v; } 1 1 2 2024-05-18
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:44: 'texture' : no matching overloaded function found ERROR: 0:44: '=' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:44: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 00180000:00000002 Tex TFuncMod layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 2) in lowp vec3 v_color1; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 s = vec4(v_color1, 0.0); vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; t.a = max(t.a, u_texNoAlpha); vec4 v = p * t + s; v.rgb = clamp(v.rgb * u_texMul, 0.0, 1.0); float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); fragColor0 = v; } 1 1 2 2024-05-18
Vulkan error in shader compilation: info: ERROR: 0:57: 'length' : no matching overloaded function found ERROR: 0:57: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 01000000:80000b20 HWX T N Light: LightUberShader Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (std140, set = 0, binding = 4) uniform lightVars { vec4 u_ambient; vec3 u_matdiffuse; vec4 u_matspecular; vec3 u_matemissive; uint u_lightControl; // light ubershader control bits vec3 u_lightpos[4]; vec3 u_lightdir[4]; vec3 u_lightatt[4]; vec4 u_lightangle_spotCoef[4]; vec3 u_lightambient[4]; vec3 u_lightdiffuse[4]; vec3 u_lightspecular[4]; }; layout (location = 0) in vec3 position; layout (location = 2) in vec3 normal; layout (location = 1) in vec2 texcoord; layout (location = 1) out lowp vec4 v_color0; layout (location = 2) out lowp vec3 v_color1; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(normal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; vec3 diffuseColor = u_matdiffuse.rgb; vec3 specularColor = u_matspecular.rgb; lowp vec4 lightSum0 = u_ambient * ambientColor + vec4(u_matemissive, 0.0); lowp vec3 lightSum1 = splat3(0.0); vec3 toLight; lowp vec3 diffuse; float distance; lowp float lightScale; mediump float ldot; lowp float angle; uint comp; uint type; float attenuation; for (uint i = 0; i < 4; i++) { if ((u_lightControl & (0x1u << i)) != 0x0u) { comp = (u_lightControl >> uint(0x4u + 0x4u * i)) & 0x3u; type = (u_lightControl >> uint(0x4u + 0x4u * i + 0x2u)) & 0x3u; toLight = u_lightpos[i]; if (type != 0x0u) { toLight -= worldpos; distance = length(toLight); toLight /= distance; attenuation = clamp(1.0 / dot(u_lightatt[i], vec3(1.0, distance, distance*distance)), 0.0, 1.0); if (type == 0x01u) { lightScale = attenuation; } else { angle = dot(u_lightdir[i], toLight); if (angle >= u_lightangle_spotCoef[i].x) { lightScale = attenuation * (u_lightangle_spotCoef[i].y <= 0.0 ? 1.0 : pow(angle, u_lightangle_spotCoef[i].y)); } else { lightScale = 0.0; } } } else { lightScale = 1.0; } ldot = dot(toLight, worldnormal); if (comp == 0x2u) { ldot = u_matspecular.a > 0.0 ? pow(max(ldot, 0.0), u_matspecular.a) : 1.0; } diffuse = (u_lightdiffuse[i] * diffuseColor) * max(ldot, 0.0); if (comp == 0x1u) { if (ldot >= 0.0) { if (u_matspecular.a > 0.0) { ldot = dot(normalize(toLight + vec3(0.0, 0.0, 1.0)), worldnormal); ldot = pow(max(ldot, 0.0), u_matspecular.a); } else { ldot = 1.0; } lightSum1 += u_lightspecular[i] * specularColor * ldot * lightScale; } } lightSum0.rgb += (u_lightambient[i] * ambientColor.rgb + diffuse) * lig 1 1 2 2024-05-18
Vulkan error in shader compilation: info: ERROR: 0:62: 'length' : no matching overloaded function found ERROR: 0:62: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 05000000:c1000b20 HWX T N Bones:5 Light: LightUberShader WScale 2 Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (std140, set = 0, binding = 4) uniform lightVars { vec4 u_ambient; vec3 u_matdiffuse; vec4 u_matspecular; vec3 u_matemissive; uint u_lightControl; // light ubershader control bits vec3 u_lightpos[4]; vec3 u_lightdir[4]; vec3 u_lightatt[4]; vec4 u_lightangle_spotCoef[4]; vec3 u_lightambient[4]; vec3 u_lightdiffuse[4]; vec3 u_lightspecular[4]; }; layout (std140, set = 0, binding = 5) uniform boneVars { mat3x4 u_bone0; mat3x4 u_bone1; mat3x4 u_bone2; mat3x4 u_bone3; mat3x4 u_bone4; mat3x4 u_bone5; mat3x4 u_bone6; mat3x4 u_bone7; mat3x4 u_bone8; }; layout(location = 3) in vec4 w1; layout(location = 4) in float w2; layout (location = 0) in vec3 position; layout (location = 2) in vec3 normal; layout (location = 1) in vec2 texcoord; layout (location = 1) out lowp vec4 v_color0; layout (location = 2) out lowp vec3 v_color1; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { mat3x4 skinMatrix = mul(w1.x, u_bone0) + mul(w1.y, u_bone1) + mul(w1.z, u_bone2) + mul(w1.w, u_bone3) + mul(w2.x, u_bone4); vec3 skinnedpos = mul(vec4(position, 1.0), skinMatrix).xyz * 1.999969482421875; vec3 worldpos = mul(vec4(skinnedpos, 1.0), u_world).xyz; mediump vec3 skinnednormal = mul(vec4(normal, 0.0), skinMatrix).xyz * 1.999969482421875; mediump vec3 worldnormal = normalizeOr001(mul(vec4(skinnednormal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; vec3 diffuseColor = u_matdiffuse.rgb; vec3 specularColor = u_matspecular.rgb; lowp vec4 lightSum0 = u_ambient * ambientColor + vec4(u_matemissive, 0.0); lowp vec3 lightSum1 = splat3(0.0); vec3 toLight; lowp vec3 diffuse; float distance; lowp float lightScale; mediump float ldot; lowp float angle; uint comp; uint type; float attenuation; for (uint i = 0; i < 4; i++) { if ((u_lightControl & (0x1u << i)) != 0x0u) { comp = (u_lightControl >> uint(0x4u + 0x4u * i)) & 0x3u; type = (u_lightControl >> uint(0x4u + 0x4u * i + 0x2u)) & 0x3u; toLight = u_lightpos[i]; if (type != 0x0u) { toLight -= worldpos; distance = length(toLight); toLight /= distance; attenuation = clamp(1.0 / dot(u_lightatt[i], vec3(1.0, distance, distance*distance)), 0.0, 1.0); if (type == 0x01u) { lightScale = attenuation; } else { angle = dot(u_lightdir[i], toLight); if (angle >= u_lightangle_spotCoef[i].x) { lightScale = attenuation * (u_lightangle_spotCoef[i].y <= 0.0 ? 1.0 : pow(angle, u_lightangle_spotCoef[i].y)); } else { lightScale = 0.0; } } } else { lightScale = 1.0; } ldot = dot(toLight, worldnormal); if (comp = 1 1 2 2024-05-18
Vulkan error in shader compilation: info: ERROR: 0:62: 'length' : no matching overloaded function found ERROR: 0:62: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 05000000:c1400b20 HWX T N Bones:6 Light: LightUberShader WScale 2 Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (std140, set = 0, binding = 4) uniform lightVars { vec4 u_ambient; vec3 u_matdiffuse; vec4 u_matspecular; vec3 u_matemissive; uint u_lightControl; // light ubershader control bits vec3 u_lightpos[4]; vec3 u_lightdir[4]; vec3 u_lightatt[4]; vec4 u_lightangle_spotCoef[4]; vec3 u_lightambient[4]; vec3 u_lightdiffuse[4]; vec3 u_lightspecular[4]; }; layout (std140, set = 0, binding = 5) uniform boneVars { mat3x4 u_bone0; mat3x4 u_bone1; mat3x4 u_bone2; mat3x4 u_bone3; mat3x4 u_bone4; mat3x4 u_bone5; mat3x4 u_bone6; mat3x4 u_bone7; mat3x4 u_bone8; }; layout(location = 3) in vec4 w1; layout(location = 4) in vec2 w2; layout (location = 0) in vec3 position; layout (location = 2) in vec3 normal; layout (location = 1) in vec2 texcoord; layout (location = 1) out lowp vec4 v_color0; layout (location = 2) out lowp vec3 v_color1; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { mat3x4 skinMatrix = mul(w1.x, u_bone0) + mul(w1.y, u_bone1) + mul(w1.z, u_bone2) + mul(w1.w, u_bone3) + mul(w2.x, u_bone4) + mul(w2.y, u_bone5); vec3 skinnedpos = mul(vec4(position, 1.0), skinMatrix).xyz * 1.999969482421875; vec3 worldpos = mul(vec4(skinnedpos, 1.0), u_world).xyz; mediump vec3 skinnednormal = mul(vec4(normal, 0.0), skinMatrix).xyz * 1.999969482421875; mediump vec3 worldnormal = normalizeOr001(mul(vec4(skinnednormal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; vec3 diffuseColor = u_matdiffuse.rgb; vec3 specularColor = u_matspecular.rgb; lowp vec4 lightSum0 = u_ambient * ambientColor + vec4(u_matemissive, 0.0); lowp vec3 lightSum1 = splat3(0.0); vec3 toLight; lowp vec3 diffuse; float distance; lowp float lightScale; mediump float ldot; lowp float angle; uint comp; uint type; float attenuation; for (uint i = 0; i < 4; i++) { if ((u_lightControl & (0x1u << i)) != 0x0u) { comp = (u_lightControl >> uint(0x4u + 0x4u * i)) & 0x3u; type = (u_lightControl >> uint(0x4u + 0x4u * i + 0x2u)) & 0x3u; toLight = u_lightpos[i]; if (type != 0x0u) { toLight -= worldpos; distance = length(toLight); toLight /= distance; attenuation = clamp(1.0 / dot(u_lightatt[i], vec3(1.0, distance, distance*distance)), 0.0, 1.0); if (type == 0x01u) { lightScale = attenuation; } else { angle = dot(u_lightdir[i], toLight); if (angle >= u_lightangle_spotCoef[i].x) { lightScale = attenuation * (u_lightangle_spotCoef[i].y <= 0.0 ? 1.0 : pow(angle, u_lightangle_spotCoef[i].y)); } else { lightScale = 0.0; } } } else { lightScale = 1.0; } ldot = dot(toLight, worldnor 1 1 2 2024-05-18
Vulkan error in shader compilation: info: ERROR: 0:62: 'length' : no matching overloaded function found ERROR: 0:62: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 05000000:c1800b20 HWX T N Bones:7 Light: LightUberShader WScale 2 Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (std140, set = 0, binding = 4) uniform lightVars { vec4 u_ambient; vec3 u_matdiffuse; vec4 u_matspecular; vec3 u_matemissive; uint u_lightControl; // light ubershader control bits vec3 u_lightpos[4]; vec3 u_lightdir[4]; vec3 u_lightatt[4]; vec4 u_lightangle_spotCoef[4]; vec3 u_lightambient[4]; vec3 u_lightdiffuse[4]; vec3 u_lightspecular[4]; }; layout (std140, set = 0, binding = 5) uniform boneVars { mat3x4 u_bone0; mat3x4 u_bone1; mat3x4 u_bone2; mat3x4 u_bone3; mat3x4 u_bone4; mat3x4 u_bone5; mat3x4 u_bone6; mat3x4 u_bone7; mat3x4 u_bone8; }; layout(location = 3) in vec4 w1; layout(location = 4) in vec3 w2; layout (location = 0) in vec3 position; layout (location = 2) in vec3 normal; layout (location = 1) in vec2 texcoord; layout (location = 1) out lowp vec4 v_color0; layout (location = 2) out lowp vec3 v_color1; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { mat3x4 skinMatrix = mul(w1.x, u_bone0) + mul(w1.y, u_bone1) + mul(w1.z, u_bone2) + mul(w1.w, u_bone3) + mul(w2.x, u_bone4) + mul(w2.y, u_bone5) + mul(w2.z, u_bone6); vec3 skinnedpos = mul(vec4(position, 1.0), skinMatrix).xyz * 1.999969482421875; vec3 worldpos = mul(vec4(skinnedpos, 1.0), u_world).xyz; mediump vec3 skinnednormal = mul(vec4(normal, 0.0), skinMatrix).xyz * 1.999969482421875; mediump vec3 worldnormal = normalizeOr001(mul(vec4(skinnednormal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; vec3 diffuseColor = u_matdiffuse.rgb; vec3 specularColor = u_matspecular.rgb; lowp vec4 lightSum0 = u_ambient * ambientColor + vec4(u_matemissive, 0.0); lowp vec3 lightSum1 = splat3(0.0); vec3 toLight; lowp vec3 diffuse; float distance; lowp float lightScale; mediump float ldot; lowp float angle; uint comp; uint type; float attenuation; for (uint i = 0; i < 4; i++) { if ((u_lightControl & (0x1u << i)) != 0x0u) { comp = (u_lightControl >> uint(0x4u + 0x4u * i)) & 0x3u; type = (u_lightControl >> uint(0x4u + 0x4u * i + 0x2u)) & 0x3u; toLight = u_lightpos[i]; if (type != 0x0u) { toLight -= worldpos; distance = length(toLight); toLight /= distance; attenuation = clamp(1.0 / dot(u_lightatt[i], vec3(1.0, distance, distance*distance)), 0.0, 1.0); if (type == 0x01u) { lightScale = attenuation; } else { angle = dot(u_lightdir[i], toLight); if (angle >= u_lightangle_spotCoef[i].x) { lightScale = attenuation * (u_lightangle_spotCoef[i].y <= 0.0 ? 1.0 : pow(angle, u_lightangle_spotCoef[i].y)); } else { lightScale = 0.0; } } } else { lightScale = 1.0; } ldot = 1 1 2 2024-05-18
Vulkan error in shader compilation: info: ERROR: 0:42: 'length' : no matching overloaded function found ERROR: 0:42: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 00000000:00000128 HWX C Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (location = 0) in vec3 position; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; layout (location = 2) out lowp vec3 v_color1; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(0.0, 0.0, 1.0, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = color0; v_color1 = splat3(0.0); v_texcoord = splat3(0.0); if (u_fogcoef.x <= -65535.0 && u_fogcoef.y <= -65535.0) { v_fogdepth = 1.0; } else { v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; } if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } vec3 projPos = outPos.xyz / outPos.w; float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w; if (u_cullRangeMin.w <= 0.0 || projZ * outPos.w > -outPos.w) { if ((projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y) || (projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y)) { outPos.xyzw = u_cullRangeMax.wwww; } } if (u_cullRangeMin.w <= 0.0) { if (projPos.z < u_cullRangeMin.z || projPos.z > u_cullRangeMax.z) { outPos.xyzw = u_cullRangeMax.wwww; } } gl_ClipDistance[1] = projZ * outPos.w + outPos.w + 0.000001; if (u_cullRangeMin.w > 0.0 && u_depthRange.w != 0.0f) { gl_CullDistance[0] = projPos.z - u_cullRangeMin.z; gl_CullDistance[1] = u_cullRangeMax.z - projPos.z; } else { gl_CullDistance[0] = 0.0; gl_CullDistance[1] = 0.0; } gl_Position = outPos; } 1 1 2 2024-05-18
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:44: 'texture' : no matching overloaded function found ERROR: 0:44: '=' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:44: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 00184000:00000002 Tex Flat TFuncMod layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) flat in lowp vec4 v_color0; layout (location = 2) flat in lowp vec3 v_color1; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 s = vec4(v_color1, 0.0); vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; t.a = max(t.a, u_texNoAlpha); vec4 v = p * t + s; v.rgb = clamp(v.rgb * u_texMul, 0.0, 1.0); float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); fragColor0 = v; } 1 1 2 2024-05-18
Vulkan error in shader compilation: info: ERROR: 0:47: 'length' : no matching overloaded function found ERROR: 0:47: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 04000000:40c00928 HWX C T Bones:4 WScale 2 Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (std140, set = 0, binding = 5) uniform boneVars { mat3x4 u_bone0; mat3x4 u_bone1; mat3x4 u_bone2; mat3x4 u_bone3; mat3x4 u_bone4; mat3x4 u_bone5; mat3x4 u_bone6; mat3x4 u_bone7; mat3x4 u_bone8; }; layout(location = 3) in vec4 w1; layout (location = 0) in vec3 position; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; layout (location = 2) out lowp vec3 v_color1; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { mat3x4 skinMatrix = mul(w1.x, u_bone0) + mul(w1.y, u_bone1) + mul(w1.z, u_bone2) + mul(w1.w, u_bone3); vec3 skinnedpos = mul(vec4(position, 1.0), skinMatrix).xyz * 1.999969482421875; vec3 worldpos = mul(vec4(skinnedpos, 1.0), u_world).xyz; mediump vec3 skinnednormal = mul(vec4(0.0, 0.0, 1.0, 0.0), skinMatrix).xyz * 1.999969482421875; mediump vec3 worldnormal = normalizeOr001(mul(vec4(skinnednormal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = color0; v_color1 = splat3(0.0); v_texcoord = vec3(texcoord.xy * u_uvscaleoffset.xy, 0.0); if (u_fogcoef.x <= -65535.0 && u_fogcoef.y <= -65535.0) { v_fogdepth = 1.0; } else { v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; } if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } vec3 projPos = outPos.xyz / outPos.w; float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w; if (u_cullRangeMin.w <= 0.0 || projZ * outPos.w > -outPos.w) { if ((projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y) || (projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y)) { outPos.xyzw = u_cullRangeMax.wwww; } } if (u_cullRangeMin.w <= 0.0) { if (projPos.z < u_cullRangeMin.z || projPos.z > u_cullRangeMax.z) { outPos.xyzw = u_cullRangeMax.wwww; } } gl_ClipDistance[1] = projZ * outPos.w + outPos.w + 0.000001; if (u_cullRangeMin.w > 0.0 && u_depthRange.w != 0.0f) { gl_CullDistance[0] = projPos.z - u_cullRangeMin.z; gl_CullDistance[1] = u_cullRangeMax.z - projPos.z; } else { gl_CullDistance[0] = 0.0; gl_CullDistance[1] = 0.0; } gl_Position = outPos; } 1 1 2 2024-05-18
Vulkan error in shader compilation: info: ERROR: 0:43: 'length' : no matching overloaded function found ERROR: 0:43: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 00000000:00000b20 HWX T N Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (location = 0) in vec3 position; layout (location = 2) in vec3 normal; layout (location = 1) in vec2 texcoord; layout (location = 1) out lowp vec4 v_color0; layout (location = 2) out lowp vec3 v_color1; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(normal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = u_matambientalpha; v_color1 = splat3(0.0); v_texcoord = vec3(texcoord.xy * u_uvscaleoffset.xy, 0.0); if (u_fogcoef.x <= -65535.0 && u_fogcoef.y <= -65535.0) { v_fogdepth = 1.0; } else { v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; } if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } vec3 projPos = outPos.xyz / outPos.w; float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w; if (u_cullRangeMin.w <= 0.0 || projZ * outPos.w > -outPos.w) { if ((projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y) || (projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y)) { outPos.xyzw = u_cullRangeMax.wwww; } } if (u_cullRangeMin.w <= 0.0) { if (projPos.z < u_cullRangeMin.z || projPos.z > u_cullRangeMax.z) { outPos.xyzw = u_cullRangeMax.wwww; } } gl_ClipDistance[1] = projZ * outPos.w + outPos.w + 0.000001; if (u_cullRangeMin.w > 0.0 && u_depthRange.w != 0.0f) { gl_CullDistance[0] = projPos.z - u_cullRangeMin.z; gl_CullDistance[1] = u_cullRangeMax.z - projPos.z; } else { gl_CullDistance[0] = 0.0; gl_CullDistance[1] = 0.0; } gl_Position = outPos; } 1 1 2 2024-05-18
Vulkan error in shader compilation: info: ERROR: 0:61: 'length' : no matching overloaded function found ERROR: 0:61: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 05000000:c0c00b20 HWX T N Bones:4 Light: LightUberShader WScale 2 Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (std140, set = 0, binding = 4) uniform lightVars { vec4 u_ambient; vec3 u_matdiffuse; vec4 u_matspecular; vec3 u_matemissive; uint u_lightControl; // light ubershader control bits vec3 u_lightpos[4]; vec3 u_lightdir[4]; vec3 u_lightatt[4]; vec4 u_lightangle_spotCoef[4]; vec3 u_lightambient[4]; vec3 u_lightdiffuse[4]; vec3 u_lightspecular[4]; }; layout (std140, set = 0, binding = 5) uniform boneVars { mat3x4 u_bone0; mat3x4 u_bone1; mat3x4 u_bone2; mat3x4 u_bone3; mat3x4 u_bone4; mat3x4 u_bone5; mat3x4 u_bone6; mat3x4 u_bone7; mat3x4 u_bone8; }; layout(location = 3) in vec4 w1; layout (location = 0) in vec3 position; layout (location = 2) in vec3 normal; layout (location = 1) in vec2 texcoord; layout (location = 1) out lowp vec4 v_color0; layout (location = 2) out lowp vec3 v_color1; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { mat3x4 skinMatrix = mul(w1.x, u_bone0) + mul(w1.y, u_bone1) + mul(w1.z, u_bone2) + mul(w1.w, u_bone3); vec3 skinnedpos = mul(vec4(position, 1.0), skinMatrix).xyz * 1.999969482421875; vec3 worldpos = mul(vec4(skinnedpos, 1.0), u_world).xyz; mediump vec3 skinnednormal = mul(vec4(normal, 0.0), skinMatrix).xyz * 1.999969482421875; mediump vec3 worldnormal = normalizeOr001(mul(vec4(skinnednormal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; vec3 diffuseColor = u_matdiffuse.rgb; vec3 specularColor = u_matspecular.rgb; lowp vec4 lightSum0 = u_ambient * ambientColor + vec4(u_matemissive, 0.0); lowp vec3 lightSum1 = splat3(0.0); vec3 toLight; lowp vec3 diffuse; float distance; lowp float lightScale; mediump float ldot; lowp float angle; uint comp; uint type; float attenuation; for (uint i = 0; i < 4; i++) { if ((u_lightControl & (0x1u << i)) != 0x0u) { comp = (u_lightControl >> uint(0x4u + 0x4u * i)) & 0x3u; type = (u_lightControl >> uint(0x4u + 0x4u * i + 0x2u)) & 0x3u; toLight = u_lightpos[i]; if (type != 0x0u) { toLight -= worldpos; distance = length(toLight); toLight /= distance; attenuation = clamp(1.0 / dot(u_lightatt[i], vec3(1.0, distance, distance*distance)), 0.0, 1.0); if (type == 0x01u) { lightScale = attenuation; } else { angle = dot(u_lightdir[i], toLight); if (angle >= u_lightangle_spotCoef[i].x) { lightScale = attenuation * (u_lightangle_spotCoef[i].y <= 0.0 ? 1.0 : pow(angle, u_lightangle_spotCoef[i].y)); } else { lightScale = 0.0; } } } else { lightScale = 1.0; } ldot = dot(toLight, worldnormal); if (comp == 0x2u) { ldot = u_matspecular.a > 0.0 ? pow(max( 1 1 2 2024-05-18
Vulkan error in shader compilation: info: ERROR: 0:48: 'length' : no matching overloaded function found ERROR: 0:48: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 04000000:41400928 HWX C T Bones:6 WScale 2 Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (std140, set = 0, binding = 5) uniform boneVars { mat3x4 u_bone0; mat3x4 u_bone1; mat3x4 u_bone2; mat3x4 u_bone3; mat3x4 u_bone4; mat3x4 u_bone5; mat3x4 u_bone6; mat3x4 u_bone7; mat3x4 u_bone8; }; layout(location = 3) in vec4 w1; layout(location = 4) in vec2 w2; layout (location = 0) in vec3 position; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; layout (location = 2) out lowp vec3 v_color1; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { mat3x4 skinMatrix = mul(w1.x, u_bone0) + mul(w1.y, u_bone1) + mul(w1.z, u_bone2) + mul(w1.w, u_bone3) + mul(w2.x, u_bone4) + mul(w2.y, u_bone5); vec3 skinnedpos = mul(vec4(position, 1.0), skinMatrix).xyz * 1.999969482421875; vec3 worldpos = mul(vec4(skinnedpos, 1.0), u_world).xyz; mediump vec3 skinnednormal = mul(vec4(0.0, 0.0, 1.0, 0.0), skinMatrix).xyz * 1.999969482421875; mediump vec3 worldnormal = normalizeOr001(mul(vec4(skinnednormal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = color0; v_color1 = splat3(0.0); v_texcoord = vec3(texcoord.xy * u_uvscaleoffset.xy, 0.0); if (u_fogcoef.x <= -65535.0 && u_fogcoef.y <= -65535.0) { v_fogdepth = 1.0; } else { v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; } if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } vec3 projPos = outPos.xyz / outPos.w; float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w; if (u_cullRangeMin.w <= 0.0 || projZ * outPos.w > -outPos.w) { if ((projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y) || (projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y)) { outPos.xyzw = u_cullRangeMax.wwww; } } if (u_cullRangeMin.w <= 0.0) { if (projPos.z < u_cullRangeMin.z || projPos.z > u_cullRangeMax.z) { outPos.xyzw = u_cullRangeMax.wwww; } } gl_ClipDistance[1] = projZ * outPos.w + outPos.w + 0.000001; if (u_cullRangeMin.w > 0.0 && u_depthRange.w != 0.0f) { gl_CullDistance[0] = projPos.z - u_cullRangeMin.z; gl_CullDistance[1] = u_cullRangeMax.z - projPos.z; } else { gl_CullDistance[0] = 0.0; gl_CullDistance[1] = 0.0; } gl_Position = outPos; } 1 1 2 2024-05-18
Vulkan error in shader compilation: info: ERROR: 0:48: 'length' : no matching overloaded function found ERROR: 0:48: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 04000000:41800928 HWX C T Bones:7 WScale 2 Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (std140, set = 0, binding = 5) uniform boneVars { mat3x4 u_bone0; mat3x4 u_bone1; mat3x4 u_bone2; mat3x4 u_bone3; mat3x4 u_bone4; mat3x4 u_bone5; mat3x4 u_bone6; mat3x4 u_bone7; mat3x4 u_bone8; }; layout(location = 3) in vec4 w1; layout(location = 4) in vec3 w2; layout (location = 0) in vec3 position; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; layout (location = 2) out lowp vec3 v_color1; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { mat3x4 skinMatrix = mul(w1.x, u_bone0) + mul(w1.y, u_bone1) + mul(w1.z, u_bone2) + mul(w1.w, u_bone3) + mul(w2.x, u_bone4) + mul(w2.y, u_bone5) + mul(w2.z, u_bone6); vec3 skinnedpos = mul(vec4(position, 1.0), skinMatrix).xyz * 1.999969482421875; vec3 worldpos = mul(vec4(skinnedpos, 1.0), u_world).xyz; mediump vec3 skinnednormal = mul(vec4(0.0, 0.0, 1.0, 0.0), skinMatrix).xyz * 1.999969482421875; mediump vec3 worldnormal = normalizeOr001(mul(vec4(skinnednormal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = color0; v_color1 = splat3(0.0); v_texcoord = vec3(texcoord.xy * u_uvscaleoffset.xy, 0.0); if (u_fogcoef.x <= -65535.0 && u_fogcoef.y <= -65535.0) { v_fogdepth = 1.0; } else { v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; } if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } vec3 projPos = outPos.xyz / outPos.w; float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w; if (u_cullRangeMin.w <= 0.0 || projZ * outPos.w > -outPos.w) { if ((projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y) || (projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y)) { outPos.xyzw = u_cullRangeMax.wwww; } } if (u_cullRangeMin.w <= 0.0) { if (projPos.z < u_cullRangeMin.z || projPos.z > u_cullRangeMax.z) { outPos.xyzw = u_cullRangeMax.wwww; } } gl_ClipDistance[1] = projZ * outPos.w + outPos.w + 0.000001; if (u_cullRangeMin.w > 0.0 && u_depthRange.w != 0.0f) { gl_CullDistance[0] = projPos.z - u_cullRangeMin.z; gl_CullDistance[1] = u_cullRangeMax.z - projPos.z; } else { gl_CullDistance[0] = 0.0; gl_CullDistance[1] = 0.0; } gl_Position = outPos; } 1 1 2 2024-05-18
Vulkan error in shader compilation: info: ERROR: 0:62: 'length' : no matching overloaded function found ERROR: 0:62: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 05000000:c1c00b20 HWX T N Bones:8 Light: LightUberShader WScale 2 Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (std140, set = 0, binding = 4) uniform lightVars { vec4 u_ambient; vec3 u_matdiffuse; vec4 u_matspecular; vec3 u_matemissive; uint u_lightControl; // light ubershader control bits vec3 u_lightpos[4]; vec3 u_lightdir[4]; vec3 u_lightatt[4]; vec4 u_lightangle_spotCoef[4]; vec3 u_lightambient[4]; vec3 u_lightdiffuse[4]; vec3 u_lightspecular[4]; }; layout (std140, set = 0, binding = 5) uniform boneVars { mat3x4 u_bone0; mat3x4 u_bone1; mat3x4 u_bone2; mat3x4 u_bone3; mat3x4 u_bone4; mat3x4 u_bone5; mat3x4 u_bone6; mat3x4 u_bone7; mat3x4 u_bone8; }; layout(location = 3) in vec4 w1; layout(location = 4) in vec4 w2; layout (location = 0) in vec3 position; layout (location = 2) in vec3 normal; layout (location = 1) in vec2 texcoord; layout (location = 1) out lowp vec4 v_color0; layout (location = 2) out lowp vec3 v_color1; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { mat3x4 skinMatrix = mul(w1.x, u_bone0) + mul(w1.y, u_bone1) + mul(w1.z, u_bone2) + mul(w1.w, u_bone3) + mul(w2.x, u_bone4) + mul(w2.y, u_bone5) + mul(w2.z, u_bone6) + mul(w2.w, u_bone7); vec3 skinnedpos = mul(vec4(position, 1.0), skinMatrix).xyz * 1.999969482421875; vec3 worldpos = mul(vec4(skinnedpos, 1.0), u_world).xyz; mediump vec3 skinnednormal = mul(vec4(normal, 0.0), skinMatrix).xyz * 1.999969482421875; mediump vec3 worldnormal = normalizeOr001(mul(vec4(skinnednormal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; vec3 diffuseColor = u_matdiffuse.rgb; vec3 specularColor = u_matspecular.rgb; lowp vec4 lightSum0 = u_ambient * ambientColor + vec4(u_matemissive, 0.0); lowp vec3 lightSum1 = splat3(0.0); vec3 toLight; lowp vec3 diffuse; float distance; lowp float lightScale; mediump float ldot; lowp float angle; uint comp; uint type; float attenuation; for (uint i = 0; i < 4; i++) { if ((u_lightControl & (0x1u << i)) != 0x0u) { comp = (u_lightControl >> uint(0x4u + 0x4u * i)) & 0x3u; type = (u_lightControl >> uint(0x4u + 0x4u * i + 0x2u)) & 0x3u; toLight = u_lightpos[i]; if (type != 0x0u) { toLight -= worldpos; distance = length(toLight); toLight /= distance; attenuation = clamp(1.0 / dot(u_lightatt[i], vec3(1.0, distance, distance*distance)), 0.0, 1.0); if (type == 0x01u) { lightScale = attenuation; } else { angle = dot(u_lightdir[i], toLight); if (angle >= u_lightangle_spotCoef[i].x) { lightScale = attenuation * (u_lightangle_spotCoef[i].y <= 0.0 ? 1.0 : pow(angle, u_lightangle_spotCoef[i].y)); } else { lightScale = 0.0; } } } else { lightScale = 1 1 1 2 2024-05-18
Vulkan error in shader compilation: info: ERROR: 0:43: 'length' : no matching overloaded function found ERROR: 0:43: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 00000000:00000928 HWX C T Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (location = 0) in vec3 position; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; layout (location = 2) out lowp vec3 v_color1; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(0.0, 0.0, 1.0, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = color0; v_color1 = splat3(0.0); v_texcoord = vec3(texcoord.xy * u_uvscaleoffset.xy, 0.0); if (u_fogcoef.x <= -65535.0 && u_fogcoef.y <= -65535.0) { v_fogdepth = 1.0; } else { v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; } if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } vec3 projPos = outPos.xyz / outPos.w; float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w; if (u_cullRangeMin.w <= 0.0 || projZ * outPos.w > -outPos.w) { if ((projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y) || (projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y)) { outPos.xyzw = u_cullRangeMax.wwww; } } if (u_cullRangeMin.w <= 0.0) { if (projPos.z < u_cullRangeMin.z || projPos.z > u_cullRangeMax.z) { outPos.xyzw = u_cullRangeMax.wwww; } } gl_ClipDistance[1] = projZ * outPos.w + outPos.w + 0.000001; if (u_cullRangeMin.w > 0.0 && u_depthRange.w != 0.0f) { gl_CullDistance[0] = projPos.z - u_cullRangeMin.z; gl_CullDistance[1] = u_cullRangeMax.z - projPos.z; } else { gl_CullDistance[0] = 0.0; gl_CullDistance[1] = 0.0; } gl_Position = outPos; } 1 1 2 2024-05-18
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:44: 'mix' : no matching overloaded function found ERROR: 0:44: 'assign' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:44: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 00184000:00000000 Flat layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (location = 1) flat in lowp vec4 v_color0; layout (location = 2) flat in lowp vec3 v_color1; layout (location = 3) in highp float v_fogdepth; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 s = vec4(v_color1, 0.0); vec4 v = v_color0 + s; float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); fragColor0 = v; } 1 1 2 2024-05-18
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:44: 'mix' : no matching overloaded function found ERROR: 0:44: 'assign' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:44: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 00184000:0001d000 Flat AlphaTest0 > layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (location = 1) flat in lowp vec4 v_color0; layout (location = 2) flat in lowp vec3 v_color1; layout (location = 3) in highp float v_fogdepth; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 s = vec4(v_color1, 0.0); vec4 v = v_color0 + s; float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); if (v.a < 0.002) DISCARD; fragColor0 = v; } 1 1 2 2024-05-18
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:44: 'mix' : no matching overloaded function found ERROR: 0:44: 'assign' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:44: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 00180000:0001d000 AlphaTest0 > layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (location = 1) in lowp vec4 v_color0; layout (location = 2) in lowp vec3 v_color1; layout (location = 3) in highp float v_fogdepth; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 s = vec4(v_color1, 0.0); vec4 v = v_color0 + s; float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); if (v.a < 0.002) DISCARD; fragColor0 = v; } 1 1 2 2024-05-18
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:44: 'mix' : no matching overloaded function found ERROR: 0:44: 'assign' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:44: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 00180000:00000000 layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (location = 1) in lowp vec4 v_color0; layout (location = 2) in lowp vec3 v_color1; layout (location = 3) in highp float v_fogdepth; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 s = vec4(v_color1, 0.0); vec4 v = v_color0 + s; float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); fragColor0 = v; } 1 1 2 2024-05-18
Vulkan error in shader compilation: info: ERROR: 0:48: 'length' : no matching overloaded function found ERROR: 0:48: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 04000000:41c00928 HWX C T Bones:8 WScale 2 Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (std140, set = 0, binding = 5) uniform boneVars { mat3x4 u_bone0; mat3x4 u_bone1; mat3x4 u_bone2; mat3x4 u_bone3; mat3x4 u_bone4; mat3x4 u_bone5; mat3x4 u_bone6; mat3x4 u_bone7; mat3x4 u_bone8; }; layout(location = 3) in vec4 w1; layout(location = 4) in vec4 w2; layout (location = 0) in vec3 position; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; layout (location = 2) out lowp vec3 v_color1; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { mat3x4 skinMatrix = mul(w1.x, u_bone0) + mul(w1.y, u_bone1) + mul(w1.z, u_bone2) + mul(w1.w, u_bone3) + mul(w2.x, u_bone4) + mul(w2.y, u_bone5) + mul(w2.z, u_bone6) + mul(w2.w, u_bone7); vec3 skinnedpos = mul(vec4(position, 1.0), skinMatrix).xyz * 1.999969482421875; vec3 worldpos = mul(vec4(skinnedpos, 1.0), u_world).xyz; mediump vec3 skinnednormal = mul(vec4(0.0, 0.0, 1.0, 0.0), skinMatrix).xyz * 1.999969482421875; mediump vec3 worldnormal = normalizeOr001(mul(vec4(skinnednormal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = color0; v_color1 = splat3(0.0); v_texcoord = vec3(texcoord.xy * u_uvscaleoffset.xy, 0.0); if (u_fogcoef.x <= -65535.0 && u_fogcoef.y <= -65535.0) { v_fogdepth = 1.0; } else { v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; } if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } vec3 projPos = outPos.xyz / outPos.w; float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w; if (u_cullRangeMin.w <= 0.0 || projZ * outPos.w > -outPos.w) { if ((projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y) || (projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y)) { outPos.xyzw = u_cullRangeMax.wwww; } } if (u_cullRangeMin.w <= 0.0) { if (projPos.z < u_cullRangeMin.z || projPos.z > u_cullRangeMax.z) { outPos.xyzw = u_cullRangeMax.wwww; } } gl_ClipDistance[1] = projZ * outPos.w + outPos.w + 0.000001; if (u_cullRangeMin.w > 0.0 && u_depthRange.w != 0.0f) { gl_CullDistance[0] = projPos.z - u_cullRangeMin.z; gl_CullDistance[1] = u_cullRangeMax.z - projPos.z; } else { gl_CullDistance[0] = 0.0; gl_CullDistance[1] = 0.0; } gl_Position = outPos; } 1 1 2 2024-05-18
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:44: 'texture' : no matching overloaded function found ERROR: 0:44: '=' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:44: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 00180000:0001d002 Tex TFuncMod AlphaTest0 > layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 2) in lowp vec3 v_color1; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 s = vec4(v_color1, 0.0); vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; t.a = max(t.a, u_texNoAlpha); vec4 v = p * t + s; v.rgb = clamp(v.rgb * u_texMul, 0.0, 1.0); float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); if (v.a < 0.002) DISCARD; fragColor0 = v; } 1 1 2 2024-05-18
Vulkan error in shader compilation: info: ERROR: 0:48: 'length' : no matching overloaded function found ERROR: 0:48: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 04000000:41000928 HWX C T Bones:5 WScale 2 Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (std140, set = 0, binding = 5) uniform boneVars { mat3x4 u_bone0; mat3x4 u_bone1; mat3x4 u_bone2; mat3x4 u_bone3; mat3x4 u_bone4; mat3x4 u_bone5; mat3x4 u_bone6; mat3x4 u_bone7; mat3x4 u_bone8; }; layout(location = 3) in vec4 w1; layout(location = 4) in float w2; layout (location = 0) in vec3 position; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; layout (location = 2) out lowp vec3 v_color1; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { mat3x4 skinMatrix = mul(w1.x, u_bone0) + mul(w1.y, u_bone1) + mul(w1.z, u_bone2) + mul(w1.w, u_bone3) + mul(w2.x, u_bone4); vec3 skinnedpos = mul(vec4(position, 1.0), skinMatrix).xyz * 1.999969482421875; vec3 worldpos = mul(vec4(skinnedpos, 1.0), u_world).xyz; mediump vec3 skinnednormal = mul(vec4(0.0, 0.0, 1.0, 0.0), skinMatrix).xyz * 1.999969482421875; mediump vec3 worldnormal = normalizeOr001(mul(vec4(skinnednormal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = color0; v_color1 = splat3(0.0); v_texcoord = vec3(texcoord.xy * u_uvscaleoffset.xy, 0.0); if (u_fogcoef.x <= -65535.0 && u_fogcoef.y <= -65535.0) { v_fogdepth = 1.0; } else { v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; } if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } vec3 projPos = outPos.xyz / outPos.w; float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w; if (u_cullRangeMin.w <= 0.0 || projZ * outPos.w > -outPos.w) { if ((projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y) || (projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y)) { outPos.xyzw = u_cullRangeMax.wwww; } } if (u_cullRangeMin.w <= 0.0) { if (projPos.z < u_cullRangeMin.z || projPos.z > u_cullRangeMax.z) { outPos.xyzw = u_cullRangeMax.wwww; } } gl_ClipDistance[1] = projZ * outPos.w + outPos.w + 0.000001; if (u_cullRangeMin.w > 0.0 && u_depthRange.w != 0.0f) { gl_CullDistance[0] = projPos.z - u_cullRangeMin.z; gl_CullDistance[1] = u_cullRangeMax.z - projPos.z; } else { gl_CullDistance[0] = 0.0; gl_CullDistance[1] = 0.0; } gl_Position = outPos; } 1 1 2 2024-05-18
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:42: 'texture' : no matching overloaded function found ERROR: 0:42: '=' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:42: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 00180000:00000002 Tex TFuncMod layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; t.a = max(t.a, u_texNoAlpha); vec4 v = p * t; v.rgb *= u_texMul; fragColor0 = v; } 1 1 2 2024-05-03
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:43: 'h_normal' : undeclared identifier ERROR: 0:43: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; layout (early_fragment_tests) in; layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec2 u_fogcoef; float u_stencilReplaceValue; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; int u_pad3; vec3 u_fogcolor; vec3 u_texenv; ivec4 u_alphacolorref; ivec4 u_alphacolormask; vec3 u_blendFixA; vec3 u_blendFixB; vec4 u_texclamp; vec2 u_texclampoff; }; layout (location = 1) in lowp vec4 v_color0; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 v = v_color0; fragColor0 = v; if (h_normal.x > -0.5) fragColor0.rgb = h_normal.xyz; } 2 2 2 2024-01-31
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:50: 'h_normal' : undeclared identifier ERROR: 0:50: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; layout (early_fragment_tests) in; layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec2 u_fogcoef; float u_stencilReplaceValue; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; int u_pad3; vec3 u_fogcolor; vec3 u_texenv; ivec4 u_alphacolorref; ivec4 u_alphacolormask; vec3 u_blendFixA; vec3 u_blendFixB; vec4 u_texclamp; vec2 u_texclampoff; }; layout (binding = 0) uniform sampler2D tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; vec4 v = p * t; float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); fragColor0 = v; if (h_normal.x > -0.5) fragColor0.rgb = h_normal.xyz; } 1 1 2 2024-01-05
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:42: 'texture' : no matching overloaded function found ERROR: 0:42: '=' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:42: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 00184000:0021d002 Tex Fog Flat TFuncMod AlphaTest0 > layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) flat in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; t.a = max(t.a, u_texNoAlpha); vec4 v = p * t; v.rgb = clamp(v.rgb * u_texMul, 0.0, 1.0); float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); if (v.a < 0.002) DISCARD; fragColor0 = v; } 2 2 2 2023-09-24
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:44: 'h_normal' : undeclared identifier ERROR: 0:44: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; layout (early_fragment_tests) in; layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec2 u_fogcoef; float u_stencilReplaceValue; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; int u_pad3; vec3 u_fogcolor; vec3 u_texenv; ivec4 u_alphacolorref; ivec4 u_alphacolormask; vec3 u_blendFixA; vec3 u_blendFixB; vec4 u_texclamp; vec2 u_texclampoff; }; layout (location = 1) in lowp vec4 v_color0; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 v = v_color0 ; fragColor0 = v; fragColor0.rgb = v_color0.rgb; if (h_normal.x > -0.5) fragColor0.rgb = h_normal.xyz; } 1 1 2 2023-09-08
Vulkan error in shader compilation: info: ERROR: 0:38: 'location' : SPIR-V requires location for user input/output ERROR: 1 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec2 u_fogcoef; float u_stencilReplaceValue; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; int u_pad3; vec3 u_fogcolor; vec3 u_texenv; ivec4 u_alphacolorref; ivec4 u_alphacolormask; vec3 u_blendFixA; vec3 u_blendFixB; vec4 u_texclamp; vec2 u_texclampoff; }; layout (location = 0) in vec4 position; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; in vec3 h_normal; void main() { v_color0 = color0; vec4 outPos = mul(u_proj_through, vec4(position.xyz, 1.0)); gl_Position = outPos; gl_PointSize = 1.0; h_normal = vec3(-1.0); } 1 1 2 2023-09-08
Vulkan error in shader compilation: info: ERROR: 0:41: 'location' : SPIR-V requires location for user input/output ERROR: 1 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec2 u_fogcoef; float u_stencilReplaceValue; float u_rotation; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; int u_pad3; vec3 u_fogcolor; vec3 u_texenv; ivec4 u_alphacolorref; ivec4 u_alphacolormask; vec3 u_blendFixA; vec3 u_blendFixB; vec4 u_texclamp; vec2 u_texclampoff; }; layout (location = 0) in vec4 position; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; in float h_depth; void main() { v_texcoord = vec3(texcoord, 1.0); v_color0 = color0; vec4 outPos = mul(u_proj_through, vec4(position.xyz, 1.0)); gl_Position = outPos; h_depth = outPos.z/outPos.w; } 1 1 2 2023-09-08
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:40: 'clamp' : no matching overloaded function found ERROR: 0:40: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 00184000:00200000 Fog Flat layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; }; layout (location = 1) flat in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 v = v_color0 ; float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); fragColor0 = v; } 2 2 2 2023-03-18
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:41: 'texture' : no matching overloaded function found ERROR: 0:41: '=' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:41: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 00184000:00000002 Tex Flat TFuncMod layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) flat in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; vec4 v = vec4(t.rgb * p.rgb, p.a); fragColor0 = v; } 2 2 2 2023-03-18
Vulkan error in shader compilation: info: ERROR: 0:43: 'location' : SPIR-V requires location for user input/output ERROR: 1 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec2 u_fogcoef; float u_stencilReplaceValue; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; int u_pad3; vec3 u_fogcolor; vec3 u_texenv; ivec4 u_alphacolorref; ivec4 u_alphacolormask; vec3 u_blendFixA; vec3 u_blendFixB; vec4 u_texclamp; vec2 u_texclampoff; }; layout (location = 0) in vec4 position; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 6) in vec3 color1; layout (location = 1) out lowp vec4 v_color0; layout (location = 2) out lowp vec3 v_color1; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; in float h_depth; void main() { v_texcoord = vec3(texcoord, 1.0); v_color0 = color0; v_color1 = color1; v_fogdepth = position.w; vec4 outPos = mul(u_proj, vec4(position.xyz, 1.0)); vec3 projPos = outPos.xyz / outPos.w; float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w; if (u_cullRangeMin.w <= 0.0 || projZ * outPos.w > -outPos.w) { if (projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y || projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y) { outPos.xyzw = u_cullRangeMax.wwww; } } if (u_cullRangeMin.w <= 0.0) { if (projPos.z < u_cullRangeMin.z || projPos.z > u_cullRangeMax.z) { outPos.xyzw = u_cullRangeMax.wwww; } } gl_Position = outPos; if (gl_Position.z == gl_Position.w) gl_Position.z *= 0.999999; gl_PointSize = 1.0; h_depth = outPos.z/outPos.w; } 1 1 2 2022-09-13
Vulkan error in shader compilation: info: ERROR: 0:40: 'location' : SPIR-V requires location for user input/output ERROR: 1 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec2 u_fogcoef; float u_stencilReplaceValue; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; int u_pad3; vec3 u_fogcolor; vec3 u_texenv; ivec4 u_alphacolorref; ivec4 u_alphacolormask; vec3 u_blendFixA; vec3 u_blendFixB; vec4 u_texclamp; vec2 u_texclampoff; }; layout (location = 0) in vec3 position; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; in float h_depth; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = vec3(0.0, 0.0, 1.0); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); v_color0 = color0; 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 = u_cullRangeMax.wwww; } } gl_Position = outPos; if (gl_Position.z == gl_Position.w) gl_Position.z *= 0.999999; gl_PointSize = 1.0; h_depth = outPos.z/outPos.w; } 1 1 2 2022-09-03
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:43: 'ERROR' : undeclared identifier ERROR: 0:43: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 proj_mtx; mat4 proj_through_mtx; mat3x4 view_mtx; mat3x4 world_mtx; mat3x4 tex_mtx; vec4 uvscaleoffset; vec4 depthRange; vec2 fogcoef; float stencilReplace; vec4 matambientalpha; uint spline_counts; uint depal_mask_shift_off_fmt; int pad2; int pad3; vec4 cullRangeMin; vec4 cullRangeMax; vec3 fogcolor; vec3 texenv; ivec4 alphacolorref; ivec4 alphacolormask; vec3 blendFixA; vec3 blendFixB; vec4 texclamp; vec2 texclampoff; } base; layout (binding = 0) uniform sampler2D tex; layout (location = 1) in vec4 v_color0; layout (location = 0) in vec3 v_texcoord; int roundAndScaleTo255i(in float x) { return int(floor(x * 255.0 + 0.5)); } layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; vec4 v = vec4(t.rgb * p.rgb, p.a); discard; v.rgb = v.rgb * ERROR; fragColor0 = v; } 1 1 2 2022-08-24
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:43: 'max' : no matching overloaded function found ERROR: 0:43: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 10184000:0021d002 Tex Fog Flat FragUber TFuncMod AlphaTest0 > layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) flat in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; t.a = max(t.a, u_texNoAlphaMul.x); vec4 v = p * t; v.rgb = clamp(v.rgb * u_texNoAlphaMul.y, 0.0, 1.0); float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); if (v.a < 0.002) DISCARD; fragColor0 = v; } 1 1 1 2026-10-10
Vulkan error in shader compilation: info: ERROR: 0:55: 'length' : no matching overloaded function found ERROR: 0:55: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 01000000:80000b00 HWX T N Light: LightUberShader layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (std140, set = 0, binding = 4) uniform lightVars { vec4 u_ambient; vec3 u_matdiffuse; vec4 u_matspecular; vec3 u_matemissive; uint u_lightControl; // light ubershader control bits vec3 u_lightpos[4]; vec3 u_lightdir[4]; vec3 u_lightatt[4]; vec4 u_lightangle_spotCoef[4]; vec3 u_lightambient[4]; vec3 u_lightdiffuse[4]; vec3 u_lightspecular[4]; }; layout (location = 0) in vec3 position; layout (location = 2) in vec3 normal; layout (location = 1) in vec2 texcoord; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(normal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; vec3 diffuseColor = u_matdiffuse.rgb; vec3 specularColor = u_matspecular.rgb; lowp vec4 lightSum0 = u_ambient * ambientColor + vec4(u_matemissive, 0.0); lowp vec3 lightSum1 = splat3(0.0); vec3 toLight; lowp vec3 diffuse; float distance; float distSq; float invDist; lowp float lightScale; mediump float ldot; lowp float angle; uint comp; uint type; float attenuation; for (uint i = 0; i < 4; i++) { if ((u_lightControl & (0x1u << i)) != 0x0u) { comp = (u_lightControl >> uint(0x4u + 0x4u * i)) & 0x3u; type = (u_lightControl >> uint(0x4u + 0x4u * i + 0x2u)) & 0x3u; toLight = u_lightpos[i]; if (type != 0x0u) { toLight -= worldpos; float distSq = dot(toLight, toLight); float invDist = inversesqrt(distSq); distance = distSq * invDist; toLight *= invDist; attenuation = clamp(1.0 / dot(u_lightatt[i], vec3(1.0, distance, distSq)), 0.0, 1.0); if (type == 0x01u) { lightScale = attenuation; } else { angle = dot(u_lightdir[i], toLight); if (angle >= u_lightangle_spotCoef[i].x) { lightScale = attenuation * (u_lightangle_spotCoef[i].y <= 0.0 ? 1.0 : pow(angle, u_lightangle_spotCoef[i].y)); } else { lightScale = 0.0; } } } else { lightScale = 1.0; } ldot = dot(toLight, worldnormal); if (comp == 0x2u) { ldot = u_matspecular.a > 0.0 ? pow(max(ldot, 0.0), u_matspecular.a) : 1.0; } diffuse = (u_lightdiffuse[i] * diffuseColor) * max(ldot, 0.0); if (comp == 0x1u && ldot >= 0.0) { if (u_matspecular.a > 0.0) { vec3 halfVec = toLight + vec3(0.0, 0.0, 1.0); float halfInvLen = inversesqrt(dot(halfVec, halfVec)); ldot = pow(max(dot(halfVec, worldnormal) * halfInvLen, 0.0), u_matspecular.a); } else { ldot = 1.0; } lightSum1 += u_lightspecular[i] * specularColor * ldot * lightSc 1 1 1 2026-10-09
Vulkan error in shader compilation: info: ERROR: 0:40: 'length' : no matching overloaded function found ERROR: 0:40: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 40000000:00000900 HWX T Flat layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 0) in vec3 position; layout (location = 1) in vec2 texcoord; layout (location = 1) flat out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(0.0, 0.0, 1.0, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = u_matambientalpha; v_texcoord = vec3(texcoord.xy * u_uvscaleoffset.xy, 0.0); v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } gl_Position = outPos; } 1 1 1 2026-10-09
Vulkan error in shader compilation: info: ERROR: 0:41: 'length' : no matching overloaded function found ERROR: 0:41: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 40000000:00000908 HWX C T Flat layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 0) in vec3 position; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) flat out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(0.0, 0.0, 1.0, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = color0; v_texcoord = vec3(texcoord.xy * u_uvscaleoffset.xy, 0.0); v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } gl_Position = outPos; } 1 1 1 2026-10-09
Vulkan error in shader compilation: info: ERROR: 0:41: 'length' : no matching overloaded function found ERROR: 0:41: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 00000000:00000908 HWX C T layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 0) in vec3 position; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(0.0, 0.0, 1.0, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = color0; v_texcoord = vec3(texcoord.xy * u_uvscaleoffset.xy, 0.0); v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } gl_Position = outPos; } 1 1 1 2026-10-09
Vulkan error in shader compilation: info: ERROR: 0:40: 'length' : no matching overloaded function found ERROR: 0:40: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 00000000:00000108 HWX C layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 0) in vec3 position; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(0.0, 0.0, 1.0, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = color0; v_texcoord = splat3(0.0); v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } gl_Position = outPos; } 1 1 1 2026-10-09
Vulkan error in shader compilation: info: WARNING: 0:57: 'layout' : useless application of layout qualifier ERROR: 0:133: 'normal' : undeclared identifier ERROR: 0:133: 'z' : vector swizzle selection out of range ERROR: 0:133: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable layout (std140, set = 0, binding = 3) uniform baseVars { mat4 proj_mtx; mat4 proj_through_mtx; mat3x4 view_mtx; mat3x4 world_mtx; mat3x4 tex_mtx; vec4 uvscaleoffset; vec4 depthRange; vec2 fogcoef; float stencilReplace; vec4 matambientalpha; uint spline_counts; uint depal_mask_shift_off_fmt; int pad2; int pad3; vec4 cullRangeMin; vec4 cullRangeMax; vec3 fogcolor; vec3 texenv; ivec4 alphacolorref; ivec4 alphacolormask; vec3 blendFixA; vec3 blendFixB; vec4 texclamp; vec2 texclampoff; } base; layout (std140, set = 0, binding = 4) uniform lightVars { vec4 u_ambient; vec3 matdiffuse; vec4 matspecular; vec3 matemissive; vec3 pos[4]; vec3 dir[4]; vec3 att[4]; vec2 angle_spotCoef[4]; vec3 ambient[4]; vec3 diffuse[4]; vec3 specular[4]; } light; layout (location = 0) in vec3 position; layout (location = 5) in vec4 color0; layout (location = 1) flat out vec4 v_color0; layout (location = 2) flat out vec3 v_color1; struct TessData { vec4 pos; vec4 uv; vec4 color; }; layout (std430, set = 0, binding = 6) readonly buffer s_tess_data { TessData data[]; } tess_data; layout (std430) struct TessWeight { vec4 basis; vec4 deriv; }; layout (std430, set = 0, binding = 7) readonly buffer s_tess_weights_u { TessWeight data[]; } tess_weights_u; layout (std430, set = 0, binding = 8) readonly buffer s_tess_weights_v { TessWeight data[]; } tess_weights_v; vec2 tess_sample(in vec2 points[16], mat4 weights) { vec2 pos = vec2(0.0); pos += weights[0][0] * points[0]; pos += weights[0][1] * points[1]; pos += weights[0][2] * points[2]; pos += weights[0][3] * points[3]; pos += weights[1][0] * points[4]; pos += weights[1][1] * points[5]; pos += weights[1][2] * points[6]; pos += weights[1][3] * points[7]; pos += weights[2][0] * points[8]; pos += weights[2][1] * points[9]; pos += weights[2][2] * points[10]; pos += weights[2][3] * points[11]; pos += weights[3][0] * points[12]; pos += weights[3][1] * points[13]; pos += weights[3][2] * points[14]; pos += weights[3][3] * points[15]; return pos; } vec3 tess_sample(in vec3 points[16], mat4 weights) { vec3 pos = vec3(0.0); pos += weights[0][0] * points[0]; pos += weights[0][1] * points[1]; pos += weights[0][2] * points[2]; pos += weights[0][3] * points[3]; pos += weights[1][0] * points[4]; pos += weights[1][1] * points[5]; pos += weights[1][2] * points[6]; pos += weights[1][3] * points[7]; pos += weights[2][0] * points[8]; pos += weights[2][1] * points[9]; pos += weights[2][2] * points[10]; pos += weights[2][3] * points[11]; pos += weights[3][0] * points[12]; pos += weights[3][1] * points[13]; pos += weights[3][2] * points[14]; pos += weights[3][3] * points[15]; return pos; } vec4 tess_sample(in vec4 points[16], mat4 weights) { vec4 pos = vec4(0.0); pos += weights[0][0] * points[0]; pos += weights[0][1] * points[1]; pos += weights[0][2] * points[2]; pos += weights[0][3] * points[3]; pos += weights[1][0] * points[4]; pos += weights[1][1] * points[5]; pos += weights[1][2] * points[6]; pos += weights[1][3] * points[7]; pos += weights[2][0] * points[8]; pos += weights[2][1] * points[9]; pos += weights[2][2] * points[10]; pos += weights[2][3] * points[11]; pos += weights[3][0] * points[12]; pos += weights[3][1] * points[13]; pos += weights[3][2] * points[14]; pos += weights[3][3] * points[15]; return pos; } struct Tess { vec3 pos; vec4 col; vec3 nrm; }; void tessellate(out Tess tess) { ivec2 point_pos = ivec2(position.z, normal.z) * 3; ivec2 weight_idx = ivec2(position.xy); vec3 _pos[16]; vec2 _tex[16]; 1 1 1 2026-06-22
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:41: 'mix' : no matching overloaded function found ERROR: 0:41: 'assign' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:41: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 10184000:00200000 Fog Flat FragUber layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 1) flat in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 v = v_color0; float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); fragColor0 = v; } 1 1 1 2026-05-14
Vulkan error in shader compilation: info: ERROR: 0:53: 'gl_Position' : identifier not previously declared ERROR: 1 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 01000000:80000b00 HWX T N Light: LightUberShader layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (std140, set = 0, binding = 4) uniform lightVars { vec4 u_ambient; vec3 u_matdiffuse; vec4 u_matspecular; vec3 u_matemissive; uint u_lightControl; // light ubershader control bits vec3 u_lightpos[4]; vec3 u_lightdir[4]; vec3 u_lightatt[4]; vec4 u_lightangle_spotCoef[4]; vec3 u_lightambient[4]; vec3 u_lightdiffuse[4]; vec3 u_lightspecular[4]; }; layout (location = 0) in vec3 position; layout (location = 2) in vec3 normal; layout (location = 1) in vec2 texcoord; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(normal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; vec3 diffuseColor = u_matdiffuse.rgb; vec3 specularColor = u_matspecular.rgb; lowp vec4 lightSum0 = u_ambient * ambientColor + vec4(u_matemissive, 0.0); lowp vec3 lightSum1 = splat3(0.0); vec3 toLight; lowp vec3 diffuse; float distance; lowp float lightScale; mediump float ldot; lowp float angle; uint comp; uint type; float attenuation; for (uint i = 0; i < 4; i++) { if ((u_lightControl & (0x1u << i)) != 0x0u) { comp = (u_lightControl >> uint(0x4u + 0x4u * i)) & 0x3u; type = (u_lightControl >> uint(0x4u + 0x4u * i + 0x2u)) & 0x3u; toLight = u_lightpos[i]; if (type != 0x0u) { toLight -= worldpos; distance = length(toLight); toLight /= distance; attenuation = clamp(1.0 / dot(u_lightatt[i], vec3(1.0, distance, distance*distance)), 0.0, 1.0); if (type == 0x01u) { lightScale = attenuation; } else { angle = dot(u_lightdir[i], toLight); if (angle >= u_lightangle_spotCoef[i].x) { lightScale = attenuation * (u_lightangle_spotCoef[i].y <= 0.0 ? 1.0 : pow(angle, u_lightangle_spotCoef[i].y)); } else { lightScale = 0.0; } } } else { lightScale = 1.0; } ldot = dot(toLight, worldnormal); if (comp == 0x2u) { ldot = u_matspecular.a > 0.0 ? pow(max(ldot, 0.0), u_matspecular.a) : 1.0; } diffuse = (u_lightdiffuse[i] * diffuseColor) * max(ldot, 0.0); if (comp == 0x1u && ldot >= 0.0) { if (u_matspecular.a > 0.0) { ldot = dot(normalize(toLight + vec3(0.0, 0.0, 1.0)), worldnormal); ldot = pow(max(ldot, 0.0), u_matspecular.a); } else { ldot = 1.0; } lightSum1 += u_lightspecular[i] * specularColor * ldot * lightScale; } lightSum0.rgb += (u_lightambient[i] * ambientColor.rgb + diffuse) * lightScale; } } v_color0 = clamp(clamp(lightSum0, 0.0, 1.0) + vec4(lightSum1, 0.0), 0.0, 1.0); v_texcoord = vec3(texcoord.xy * u_uvscal 1 1 1 2026-03-14
Vulkan error in shader compilation: info: ERROR: 0:39: 'gl_Position' : identifier not previously declared ERROR: 1 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 00000000:00000908 HWX C T layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 0) in vec3 position; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(0.0, 0.0, 1.0, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = color0; v_texcoord = vec3(texcoord.xy * u_uvscaleoffset.xy, 0.0); v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } gl_Position = outPos; } 1 1 1 2026-03-14
Vulkan error in shader compilation: info: ERROR: 0:38: 'gl_Position' : identifier not previously declared ERROR: 1 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 00000000:00000108 HWX C layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 0) in vec3 position; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(0.0, 0.0, 1.0, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = color0; v_texcoord = splat3(0.0); v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } gl_Position = outPos; } 1 1 1 2026-03-14
Vulkan error in shader compilation: info: ERROR: 0:40: 'gl_Position' : identifier not previously declared ERROR: 1 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 40000000:00000008 C Flat layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 0) in vec4 position; layout (location = 2) in float fog; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) flat out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; void main() { v_texcoord = vec3(texcoord, 1.0); v_color0 = color0; v_fogdepth = fog; mat2 displayRotation = mat2( u_rotation == 0.0 ? 1.0 : (u_rotation == 2.0 ? -1.0 : 0.0), u_rotation == 1.0 ? 1.0 : (u_rotation == 3.0 ? -1.0 : 0.0), u_rotation == 3.0 ? 1.0 : (u_rotation == 1.0 ? -1.0 : 0.0), u_rotation == 0.0 ? 1.0 : (u_rotation == 2.0 ? -1.0 : 0.0) ); vec4 pos = position; pos.xy = mul(displayRotation, pos.xy); vec4 outPos = pos; if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } gl_Position = outPos; } 1 1 1 2026-03-14
Vulkan error in shader compilation: info: ERROR: 0:40: 'gl_Position' : identifier not previously declared ERROR: 1 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 40000000:00000000 Flat layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 0) in vec4 position; layout (location = 2) in float fog; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) flat out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; void main() { v_texcoord = vec3(texcoord, 1.0); v_color0 = color0; v_fogdepth = fog; mat2 displayRotation = mat2( u_rotation == 0.0 ? 1.0 : (u_rotation == 2.0 ? -1.0 : 0.0), u_rotation == 1.0 ? 1.0 : (u_rotation == 3.0 ? -1.0 : 0.0), u_rotation == 3.0 ? 1.0 : (u_rotation == 1.0 ? -1.0 : 0.0), u_rotation == 0.0 ? 1.0 : (u_rotation == 2.0 ? -1.0 : 0.0) ); vec4 pos = position; pos.xy = mul(displayRotation, pos.xy); vec4 outPos = pos; if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } gl_Position = outPos; } 1 1 1 2026-03-14
Vulkan error in shader compilation: info: ERROR: 0:39: 'gl_Position' : identifier not previously declared ERROR: 1 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 00000000:00000b20 HWX T N Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 0) in vec3 position; layout (location = 2) in vec3 normal; layout (location = 1) in vec2 texcoord; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(normal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = u_matambientalpha; v_texcoord = vec3(texcoord.xy * u_uvscaleoffset.xy, 0.0); v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } vec3 projPos = outPos.xyz / outPos.w; float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w; if (u_cullRangeMin.w <= 0.0 || projZ * outPos.w > -outPos.w) { if ((projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y) || (projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y)) { outPos.xyzw = u_cullRangeMax.wwww; } } if (u_cullRangeMin.w <= 0.0) { if (projPos.z < u_cullRangeMin.z || projPos.z > u_cullRangeMax.z) { outPos.xyzw = u_cullRangeMax.wwww; } } gl_ClipDistance[1] = projZ * outPos.w + outPos.w + 0.000001; if (u_cullRangeMin.w > 0.0 && u_depthRange.w != 0.0f) { gl_CullDistance[0] = projPos.z - u_cullRangeMin.z; gl_CullDistance[1] = u_cullRangeMax.z - projPos.z; } else { gl_CullDistance[0] = 0.0; gl_CullDistance[1] = 0.0; } gl_Position = outPos; } 1 1 1 2025-09-06
Vulkan error in shader compilation: info: ERROR: 0:84: 'dot' : no matching overloaded function found ERROR: 0:84: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec2 u_fogcoef; float u_stencilReplaceValue; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; int u_pad3; vec3 u_fogcolor; vec3 u_texenv; ivec4 u_alphacolorref; ivec4 u_alphacolormask; vec3 u_blendFixA; vec3 u_blendFixB; vec4 u_texclamp; vec2 u_texclampoff; }; layout (std140, set = 0, binding = 4) uniform lightVars { vec4 u_ambient; vec3 u_matdiffuse; vec4 u_matspecular; vec3 u_matemissive; vec3 u_lightpos0; vec3 u_lightpos1; vec3 u_lightpos2; vec3 u_lightpos3; vec3 u_lightdir0; vec3 u_lightdir1; vec3 u_lightdir2; vec3 u_lightdir3; vec3 u_lightatt0; vec3 u_lightatt1; vec3 u_lightatt2; vec3 u_lightatt3; vec4 u_lightangle_spotCoef0; vec4 u_lightangle_spotCoef1; vec4 u_lightangle_spotCoef2; vec4 u_lightangle_spotCoef3; vec3 u_lightambient0; vec3 u_lightambient1; vec3 u_lightambient2; vec3 u_lightambient3; vec3 u_lightdiffuse0; vec3 u_lightdiffuse1; vec3 u_lightdiffuse2; vec3 u_lightdiffuse3; vec3 u_lightspecular0; vec3 u_lightspecular1; vec3 u_lightspecular2; vec3 u_lightspecular3; }; layout (location = 0) in vec3 position; layout (location = 2) in vec3 normal; layout (location = 1) in vec2 texcoord; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalize(mul(vec4(normal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(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 = dot(toLight, worldnormal); diffuse = (u_lightdiffuse0 * u_matdiffuse) * max(ldot, 0.0); lightSum0.rgb += (u_lightambient0 * u_matambientalpha.rgb + diffuse); toLight = u_lightpos1; ldot = dot(toLight, worldnormal); diffuse = (u_lightdiffuse1 * u_matdiffuse) * max(ldot, 0.0); lightSum0.rgb += (u_lightambient1 * u_matambientalpha.rgb + diffuse); toLight = u_lightpos2; ldot = dot(toLight, worldnormal); diffuse = (u_lightdiffuse2 * u_matdiffuse) * max(ldot, 0.0); lightSum0.rgb += (u_lightambient2 * u_matambientalpha.rgb + diffuse); v_color0 = clamp(lightSum0, 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 = u_cullRangeMax.wwww; } } gl_Position = outPos; if (gl_Position.z == gl_Position.w) gl_Position.z *= 0.999999; gl_PointSize = 1.0; } 1 1 1 2024-11-29
Vulkan error in shader compilation: info: ERROR: 0:39: 'length' : no matching overloaded function found ERROR: 0:39: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 00000000:00000120 HWX Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 0) in vec3 position; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(0.0, 0.0, 1.0, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = u_matambientalpha; v_color0.r += 0.000001; v_texcoord = splat3(0.0); v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; vec3 projPos = outPos.xyz / outPos.w; float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w; if (u_cullRangeMin.w <= 0.0 || projZ * outPos.w > -outPos.w) { if ((projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y) || (projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y)) { outPos.xyzw = u_cullRangeMax.wwww; } } if (u_cullRangeMin.w <= 0.0) { if (projPos.z < u_cullRangeMin.z || projPos.z > u_cullRangeMax.z) { outPos.xyzw = u_cullRangeMax.wwww; } } gl_Position = outPos; if (gl_Position.z == gl_Position.w) gl_Position.z *= 0.999999; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: ERROR: 0:55: 'length' : no matching overloaded function found ERROR: 0:55: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 01000000:80000928 HWX C T Light: LightUberShader Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (std140, set = 0, binding = 4) uniform lightVars { vec4 u_ambient; vec3 u_matdiffuse; vec4 u_matspecular; vec3 u_matemissive; uint u_lightControl; // light ubershader control bits vec3 u_lightpos[4]; vec3 u_lightdir[4]; vec3 u_lightatt[4]; vec4 u_lightangle_spotCoef[4]; vec3 u_lightambient[4]; vec3 u_lightdiffuse[4]; vec3 u_lightspecular[4]; }; layout (location = 0) in vec3 position; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(0.0, 0.0, 1.0, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = ((u_lightControl & (1u << 0x14u)) != 0x0u) ? color0 : u_matambientalpha; vec3 diffuseColor = ((u_lightControl & (1u << 0x15u)) != 0x0u) ? color0.rgb : u_matdiffuse; vec3 specularColor = ((u_lightControl & (1u << 0x16u)) != 0x0u) ? color0.rgb : u_matspecular.rgb; lowp vec4 lightSum0 = u_ambient * ambientColor + vec4(u_matemissive, 0.0); lowp vec3 lightSum1 = splat3(0.0); vec3 toLight; lowp vec3 diffuse; float distance; lowp float lightScale; mediump float ldot; lowp float angle; uint comp; uint type; float attenuation; for (uint i = 0; i < 4; i++) { if ((u_lightControl & (0x1u << i)) != 0x0u) { comp = (u_lightControl >> uint(0x4u + 0x4u * i)) & 0x3u; type = (u_lightControl >> uint(0x4u + 0x4u * i + 0x2u)) & 0x3u; toLight = u_lightpos[i]; if (type != 0x0u) { toLight -= worldpos; distance = length(toLight); toLight /= distance; attenuation = clamp(1.0 / dot(u_lightatt[i], vec3(1.0, distance, distance*distance)), 0.0, 1.0); if (type == 0x01u) { lightScale = attenuation; } else { angle = dot(u_lightdir[i], toLight); if (angle >= u_lightangle_spotCoef[i].x) { lightScale = attenuation * (u_lightangle_spotCoef[i].y <= 0.0 ? 1.0 : pow(angle, u_lightangle_spotCoef[i].y)); } else { lightScale = 0.0; } } } else { lightScale = 1.0; } ldot = dot(toLight, worldnormal); if (comp == 0x2u) { ldot = u_matspecular.a > 0.0 ? pow(max(ldot, 0.0), u_matspecular.a) : 1.0; } diffuse = (u_lightdiffuse[i] * diffuseColor) * max(ldot, 0.0); if (comp == 0x1u && ldot >= 0.0) { if (u_matspecular.a > 0.0) { ldot = dot(normalize(toLight + vec3(0.0, 0.0, 1.0)), worldnormal); ldot = pow(max(ldot, 0.0), u_matspecular.a); } else { ldot = 1.0; } lightSum1 += u_lightspecular[i] * specularColor * ldot * lightScale; 1 1 1 2024-11-28
Vulkan error in shader compilation: info: ERROR: 0:41: 'length' : no matching overloaded function found ERROR: 0:41: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 00000000:00050928 HWX C T TexProjUV UVMtx Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 0) in vec3 position; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(0.0, 0.0, 1.0, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = color0; v_texcoord = mul(vec4(texcoord.xy, 0.0, 1.0), u_texmtx).xyz * vec3(u_uvscaleoffset.xy, 1.0); v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; vec3 projPos = outPos.xyz / outPos.w; float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w; if (u_cullRangeMin.w <= 0.0 || projZ * outPos.w > -outPos.w) { if ((projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y) || (projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y)) { outPos.xyzw = u_cullRangeMax.wwww; } } if (u_cullRangeMin.w <= 0.0) { if (projPos.z < u_cullRangeMin.z || projPos.z > u_cullRangeMax.z) { outPos.xyzw = u_cullRangeMax.wwww; } } gl_Position = outPos; if (gl_Position.z == gl_Position.w) gl_Position.z *= 0.999999; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:42: 'texture' : no matching overloaded function found ERROR: 0:42: '=' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:42: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 101a0000:0021d002 Tex Fog FragUber TFuncMod AlphaTest0 > StencilDiscardWorkaround layout (depth_unchanged) out float gl_FragDepth; layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; t.a = max(t.a, u_texNoAlphaMul.x); vec4 v = p * t; v.rgb = clamp(v.rgb * u_texNoAlphaMul.y, 0.0, 1.0); float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); if (v.a < 0.002) DISCARD; fragColor0 = v; gl_FragDepth = gl_FragCoord.z; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:37: 'floor' : no matching overloaded function found ERROR: 0:37: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 10190000:0000d000 FragUber AlphaTest > TestDiscardToZero layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; int roundAndScaleTo255i(in highp float x) { return int(floor(x * 255.0 + 0.5)); } layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 v = v_color0; if ((roundAndScaleTo255i(v.a) & int(u_alphacolormask >> 0x18u)) <= int(u_alphacolorref >> 0x18u)) v.a = 0.0; fragColor0 = v; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:41: 'clamp' : no matching overloaded function found ERROR: 0:41: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 12180000:00200382 Tex Fog FragUber TClampST TFuncMod TexArray layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2DArray tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec2 fixedcoord = vec2((clamp(v_texcoord.x, u_texclamp.z, u_texclamp.x - u_texclamp.z) + u_texclampoff.x), (clamp(v_texcoord.y, u_texclamp.w, u_texclamp.y - u_texclamp.w) + u_texclampoff.y)); vec4 t = texture(tex, vec3(fixedcoord.xy, 0.0)); vec4 p = v_color0; t.a = max(t.a, u_texNoAlphaMul.x); vec4 v = p * t; v.rgb = clamp(v.rgb * u_texNoAlphaMul.y, 0.0, 1.0); float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); fragColor0 = v; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:41: 'mod' : no matching overloaded function found ERROR: 0:41: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 12184000:0000008e Tex Flat FragUber TClamp TFuncRepl TexArray layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2DArray tex; layout (location = 1) flat in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec2 fixedcoord = vec2((mod(v_texcoord.x, u_texclamp.x) + u_texclampoff.x), (mod(v_texcoord.y, u_texclamp.y) + u_texclampoff.y)); vec4 t = texture(tex, vec3(fixedcoord.xy, 0.0)); vec4 p = v_color0; vec4 r = t; r.a = mix(r.a, p.a, u_texNoAlphaMul.x); vec4 v = r; v.rgb *= u_texNoAlphaMul.y; fragColor0 = v; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:42: 'texture' : no matching overloaded function found ERROR: 0:42: '=' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:42: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 101a0000:00200002 Tex Fog FragUber TFuncMod StencilDiscardWorkaround layout (depth_unchanged) out float gl_FragDepth; layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; t.a = max(t.a, u_texNoAlphaMul.x); vec4 v = p * t; v.rgb = clamp(v.rgb * u_texNoAlphaMul.y, 0.0, 1.0); float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); fragColor0 = v; gl_FragDepth = gl_FragCoord.z; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: ERROR: 0:40: 'length' : no matching overloaded function found ERROR: 0:40: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 00000000:00000920 HWX T Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 0) in vec3 position; layout (location = 1) in vec2 texcoord; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(0.0, 0.0, 1.0, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = u_matambientalpha; v_color0.r += 0.000001; 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; float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w; if (u_cullRangeMin.w <= 0.0 || projZ * outPos.w > -outPos.w) { if ((projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y) || (projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y)) { outPos.xyzw = u_cullRangeMax.wwww; } } if (u_cullRangeMin.w <= 0.0) { if (projPos.z < u_cullRangeMin.z || projPos.z > u_cullRangeMax.z) { outPos.xyzw = u_cullRangeMax.wwww; } } gl_Position = outPos; if (gl_Position.z == gl_Position.w) gl_Position.z *= 0.999999; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:42: 'texture' : no matching overloaded function found ERROR: 0:42: '=' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:42: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 121a0000:00200002 Tex Fog FragUber TFuncMod StencilDiscardWorkaround TexArray layout (depth_unchanged) out float gl_FragDepth; layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2DArray tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, vec3(v_texcoord.xy, 0.0)); vec4 p = v_color0; t.a = max(t.a, u_texNoAlphaMul.x); vec4 v = p * t; v.rgb = clamp(v.rgb * u_texNoAlphaMul.y, 0.0, 1.0); float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); fragColor0 = v; gl_FragDepth = gl_FragCoord.z; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:39: 'floor' : no matching overloaded function found ERROR: 0:39: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 10180000:0020d002 Tex Fog FragUber TFuncMod AlphaTest > layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; int roundAndScaleTo255i(in highp float x) { return int(floor(x * 255.0 + 0.5)); } layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; t.a = max(t.a, u_texNoAlphaMul.x); vec4 v = p * t; v.rgb = clamp(v.rgb * u_texNoAlphaMul.y, 0.0, 1.0); float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); if ((roundAndScaleTo255i(v.a) & int(u_alphacolormask >> 0x18u)) <= int(u_alphacolorref >> 0x18u)) DISCARD; fragColor0 = v; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:41: 'clamp' : no matching overloaded function found ERROR: 0:41: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 12180000:0000038e Tex FragUber TClampST TFuncRepl TexArray layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2DArray tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec2 fixedcoord = vec2((clamp(v_texcoord.x, u_texclamp.z, u_texclamp.x - u_texclamp.z) + u_texclampoff.x), (clamp(v_texcoord.y, u_texclamp.w, u_texclamp.y - u_texclamp.w) + u_texclampoff.y)); vec4 t = texture(tex, vec3(fixedcoord.xy, 0.0)); vec4 p = v_color0; vec4 r = t; r.a = mix(r.a, p.a, u_texNoAlphaMul.x); vec4 v = r; v.rgb *= u_texNoAlphaMul.y; fragColor0 = v; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:39: 'floor' : no matching overloaded function found ERROR: 0:39: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 10190000:0020d002 Tex Fog FragUber TFuncMod AlphaTest > TestDiscardToZero layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; int roundAndScaleTo255i(in highp float x) { return int(floor(x * 255.0 + 0.5)); } layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; t.a = max(t.a, u_texNoAlphaMul.x); vec4 v = p * t; v.rgb = clamp(v.rgb * u_texNoAlphaMul.y, 0.0, 1.0); float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); if ((roundAndScaleTo255i(v.a) & int(u_alphacolormask >> 0x18u)) <= int(u_alphacolorref >> 0x18u)) v.a = 0.0; fragColor0 = v; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:42: 'texture' : no matching overloaded function found ERROR: 0:42: '=' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:42: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 121a0000:00000002 Tex FragUber TFuncMod StencilDiscardWorkaround TexArray layout (depth_unchanged) out float gl_FragDepth; layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2DArray tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, vec3(v_texcoord.xy, 0.0)); vec4 p = v_color0; t.a = max(t.a, u_texNoAlphaMul.x); vec4 v = p * t; v.rgb *= u_texNoAlphaMul.y; fragColor0 = v; gl_FragDepth = gl_FragCoord.z; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:41: 'clamp' : no matching overloaded function found ERROR: 0:41: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 12180000:00000382 Tex FragUber TClampST TFuncMod TexArray layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2DArray tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec2 fixedcoord = vec2((clamp(v_texcoord.x, u_texclamp.z, u_texclamp.x - u_texclamp.z) + u_texclampoff.x), (clamp(v_texcoord.y, u_texclamp.w, u_texclamp.y - u_texclamp.w) + u_texclampoff.y)); vec4 t = texture(tex, vec3(fixedcoord.xy, 0.0)); vec4 p = v_color0; t.a = max(t.a, u_texNoAlphaMul.x); vec4 v = p * t; v.rgb *= u_texNoAlphaMul.y; fragColor0 = v; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: ERROR: 0:56: 'length' : no matching overloaded function found ERROR: 0:56: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 01000000:80000b28 HWX C T N Light: LightUberShader Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (std140, set = 0, binding = 4) uniform lightVars { vec4 u_ambient; vec3 u_matdiffuse; vec4 u_matspecular; vec3 u_matemissive; uint u_lightControl; // light ubershader control bits vec3 u_lightpos[4]; vec3 u_lightdir[4]; vec3 u_lightatt[4]; vec4 u_lightangle_spotCoef[4]; vec3 u_lightambient[4]; vec3 u_lightdiffuse[4]; vec3 u_lightspecular[4]; }; layout (location = 0) in vec3 position; layout (location = 2) in vec3 normal; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(normal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = ((u_lightControl & (1u << 0x14u)) != 0x0u) ? color0 : u_matambientalpha; vec3 diffuseColor = ((u_lightControl & (1u << 0x15u)) != 0x0u) ? color0.rgb : u_matdiffuse; vec3 specularColor = ((u_lightControl & (1u << 0x16u)) != 0x0u) ? color0.rgb : u_matspecular.rgb; lowp vec4 lightSum0 = u_ambient * ambientColor + vec4(u_matemissive, 0.0); lowp vec3 lightSum1 = splat3(0.0); vec3 toLight; lowp vec3 diffuse; float distance; lowp float lightScale; mediump float ldot; lowp float angle; uint comp; uint type; float attenuation; for (uint i = 0; i < 4; i++) { if ((u_lightControl & (0x1u << i)) != 0x0u) { comp = (u_lightControl >> uint(0x4u + 0x4u * i)) & 0x3u; type = (u_lightControl >> uint(0x4u + 0x4u * i + 0x2u)) & 0x3u; toLight = u_lightpos[i]; if (type != 0x0u) { toLight -= worldpos; distance = length(toLight); toLight /= distance; attenuation = clamp(1.0 / dot(u_lightatt[i], vec3(1.0, distance, distance*distance)), 0.0, 1.0); if (type == 0x01u) { lightScale = attenuation; } else { angle = dot(u_lightdir[i], toLight); if (angle >= u_lightangle_spotCoef[i].x) { lightScale = attenuation * (u_lightangle_spotCoef[i].y <= 0.0 ? 1.0 : pow(angle, u_lightangle_spotCoef[i].y)); } else { lightScale = 0.0; } } } else { lightScale = 1.0; } ldot = dot(toLight, worldnormal); if (comp == 0x2u) { ldot = u_matspecular.a > 0.0 ? pow(max(ldot, 0.0), u_matspecular.a) : 1.0; } diffuse = (u_lightdiffuse[i] * diffuseColor) * max(ldot, 0.0); if (comp == 0x1u && ldot >= 0.0) { if (u_matspecular.a > 0.0) { ldot = dot(normalize(toLight + vec3(0.0, 0.0, 1.0)), worldnormal); ldot = pow(max(ldot, 0.0), u_matspecular.a); } else { ldot = 1.0; } lightSum1 += u_lightspecular[i] * spec 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:41: 'texture' : no matching overloaded function found ERROR: 0:41: '=' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:41: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 10184000:0000000e Tex Flat FragUber TFuncRepl layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) flat in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; vec4 r = t; r.a = mix(r.a, p.a, u_texNoAlphaMul.x); vec4 v = r; v.rgb *= u_texNoAlphaMul.y; fragColor0 = v; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:41: 'texture' : no matching overloaded function found ERROR: 0:41: '=' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:41: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 10180000:0000000e Tex FragUber TFuncRepl layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; vec4 r = t; r.a = mix(r.a, p.a, u_texNoAlphaMul.x); vec4 v = r; v.rgb *= u_texNoAlphaMul.y; fragColor0 = v; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:39: 'floor' : no matching overloaded function found ERROR: 0:39: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 10180000:0000d002 Tex FragUber TFuncMod AlphaTest > layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; int roundAndScaleTo255i(in highp float x) { return int(floor(x * 255.0 + 0.5)); } layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; t.a = max(t.a, u_texNoAlphaMul.x); vec4 v = p * t; v.rgb *= u_texNoAlphaMul.y; if ((roundAndScaleTo255i(v.a) & int(u_alphacolormask >> 0x18u)) <= int(u_alphacolorref >> 0x18u)) DISCARD; fragColor0 = v; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:41: 'mod' : no matching overloaded function found ERROR: 0:41: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 12180000:0000008e Tex FragUber TClamp TFuncRepl TexArray layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2DArray tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec2 fixedcoord = vec2((mod(v_texcoord.x, u_texclamp.x) + u_texclampoff.x), (mod(v_texcoord.y, u_texclamp.y) + u_texclampoff.y)); vec4 t = texture(tex, vec3(fixedcoord.xy, 0.0)); vec4 p = v_color0; vec4 r = t; r.a = mix(r.a, p.a, u_texNoAlphaMul.x); vec4 v = r; v.rgb *= u_texNoAlphaMul.y; fragColor0 = v; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:39: 'floor' : no matching overloaded function found ERROR: 0:39: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 10190000:0000d002 Tex FragUber TFuncMod AlphaTest > TestDiscardToZero layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; int roundAndScaleTo255i(in highp float x) { return int(floor(x * 255.0 + 0.5)); } layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; t.a = max(t.a, u_texNoAlphaMul.x); vec4 v = p * t; v.rgb *= u_texNoAlphaMul.y; if ((roundAndScaleTo255i(v.a) & int(u_alphacolormask >> 0x18u)) <= int(u_alphacolorref >> 0x18u)) v.a = 0.0; fragColor0 = v; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:41: 'texture' : no matching overloaded function found ERROR: 0:41: '=' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:41: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 12180000:00000002 Tex FragUber TFuncMod TexArray layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2DArray tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, vec3(v_texcoord.xy, 0.0)); vec4 p = v_color0; t.a = max(t.a, u_texNoAlphaMul.x); vec4 v = p * t; v.rgb *= u_texNoAlphaMul.y; fragColor0 = v; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:37: 'floor' : no matching overloaded function found ERROR: 0:37: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 12190000:0000d000 FragUber AlphaTest > TestDiscardToZero TexArray layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; int roundAndScaleTo255i(in highp float x) { return int(floor(x * 255.0 + 0.5)); } layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 v = v_color0; if ((roundAndScaleTo255i(v.a) & int(u_alphacolormask >> 0x18u)) <= int(u_alphacolorref >> 0x18u)) v.a = 0.0; fragColor0 = v; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:42: 'texture' : no matching overloaded function found ERROR: 0:42: '=' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:42: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 101a0000:00000002 Tex FragUber TFuncMod StencilDiscardWorkaround layout (depth_unchanged) out float gl_FragDepth; layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; t.a = max(t.a, u_texNoAlphaMul.x); vec4 v = p * t; v.rgb *= u_texNoAlphaMul.y; fragColor0 = v; gl_FragDepth = gl_FragCoord.z; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: ERROR: 0:42: 'length' : no matching overloaded function found ERROR: 0:42: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 00000000:00000b28 HWX C T N Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 0) in vec3 position; layout (location = 2) in vec3 normal; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(normal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = color0; 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; float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w; if (u_cullRangeMin.w <= 0.0 || projZ * outPos.w > -outPos.w) { if ((projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y) || (projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y)) { outPos.xyzw = u_cullRangeMax.wwww; } } if (u_cullRangeMin.w <= 0.0) { if (projPos.z < u_cullRangeMin.z || projPos.z > u_cullRangeMax.z) { outPos.xyzw = u_cullRangeMax.wwww; } } gl_Position = outPos; if (gl_Position.z == gl_Position.w) gl_Position.z *= 0.999999; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:40: 'floor' : no matching overloaded function found ERROR: 0:40: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 101a0000:0020d002 Tex Fog FragUber TFuncMod AlphaTest > StencilDiscardWorkaround layout (depth_unchanged) out float gl_FragDepth; layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; int roundAndScaleTo255i(in highp float x) { return int(floor(x * 255.0 + 0.5)); } layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; t.a = max(t.a, u_texNoAlphaMul.x); vec4 v = p * t; v.rgb = clamp(v.rgb * u_texNoAlphaMul.y, 0.0, 1.0); float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); if ((roundAndScaleTo255i(v.a) & int(u_alphacolormask >> 0x18u)) <= int(u_alphacolorref >> 0x18u)) DISCARD; fragColor0 = v; gl_FragDepth = gl_FragCoord.z; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: ERROR: 0:39: 'length' : no matching overloaded function found ERROR: 0:39: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 00000000:00010120 HWX TexProjPos UVMtx Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 0) in vec3 position; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(0.0, 0.0, 1.0, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = u_matambientalpha; v_color0.r += 0.000001; v_texcoord = mul(vec4(position, 1.0), u_texmtx).xyz * vec3(u_uvscaleoffset.xy, 1.0); v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; vec3 projPos = outPos.xyz / outPos.w; float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w; if (u_cullRangeMin.w <= 0.0 || projZ * outPos.w > -outPos.w) { if ((projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y) || (projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y)) { outPos.xyzw = u_cullRangeMax.wwww; } } if (u_cullRangeMin.w <= 0.0) { if (projPos.z < u_cullRangeMin.z || projPos.z > u_cullRangeMax.z) { outPos.xyzw = u_cullRangeMax.wwww; } } gl_Position = outPos; if (gl_Position.z == gl_Position.w) gl_Position.z *= 0.999999; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:41: 'texture' : no matching overloaded function found ERROR: 0:41: '=' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:41: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 12180000:00200002 Tex Fog FragUber TFuncMod TexArray layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2DArray tex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, vec3(v_texcoord.xy, 0.0)); vec4 p = v_color0; t.a = max(t.a, u_texNoAlphaMul.x); vec4 v = p * t; v.rgb = clamp(v.rgb * u_texNoAlphaMul.y, 0.0, 1.0); float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); fragColor0 = v; } 1 1 1 2024-11-28
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:43: 'texelFetch' : no matching overloaded function found ERROR: 0:43: '=' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:43: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 102c2886:0020d002 Tex Fog FragUber WriteMask ReplaceBlend_6A:2_B:10_Eq:0 TFuncMod AlphaTest > RLogic(NOOP) layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (set = 0, binding = 1) uniform sampler2DArray fbotex; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; int roundAndScaleTo255i(in highp float x) { return int(floor(x * 255.0 + 0.5)); } layout (location = 0, index = 0) out vec4 fragColor0; void main() { lowp vec4 destColor = texelFetch(fbotex, ivec3(gl_FragCoord.x, gl_FragCoord.y, 0), 0); vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; t.a = max(t.a, u_texNoAlphaMul.x); vec4 v = p * t; v.rgb = clamp(v.rgb * u_texNoAlphaMul.y, 0.0, 1.0); float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); if ((roundAndScaleTo255i(v.a) & int(u_alphacolormask >> 0x18u)) <= int(u_alphacolorref >> 0x18u)) DISCARD; v.rgb = v.rgb * v.aaa + destColor.rgb * u_blendFixB; fragColor0 = v; highp uint v32 = packUnorm4x8(fragColor0); highp uint d32 = packUnorm4x8(destColor); v32 = (d32 & 0x00FFFFFFu) | (v32 & 0xFF000000u); v32 = (v32 & u_colorWriteMask & 0x00FFFFFFu) | (d32 & (~u_colorWriteMask | 0xFF000000u)); fragColor0 = unpackUnorm4x8(v32); } 1 1 1 2024-11-04
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:44: 'texelFetch' : no matching overloaded function found ERROR: 0:44: '=' : cannot convert from ' const float' to ' temp lowp 4-component vector of float' ERROR: 0:44: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 102c0c86:0000d802 Tex LM FragUber WriteMask ReplaceBlend_6A:2_B:3_Eq:0 TFuncMod AlphaTest > RLogic(NOOP) layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (set = 0, binding = 0) uniform sampler2D tex; layout (set = 0, binding = 1) uniform sampler2DArray fbotex; layout (location = 1) in lowp vec4 v_color0; layout (location = 2) in lowp vec3 v_color1; layout (location = 3) in highp float v_fogdepth; layout (location = 0) in highp vec3 v_texcoord; int roundAndScaleTo255i(in highp float x) { return int(floor(x * 255.0 + 0.5)); } layout (location = 0, index = 0) out vec4 fragColor0; void main() { lowp vec4 destColor = texelFetch(fbotex, ivec3(gl_FragCoord.x, gl_FragCoord.y, 0), 0); vec4 s = vec4(v_color1, 0.0); vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; t.a = max(t.a, u_texNoAlphaMul.x); vec4 v = p * t + s; v.rgb = clamp(v.rgb * u_texNoAlphaMul.y, 0.0, 1.0); if ((roundAndScaleTo255i(v.a) & int(u_alphacolormask >> 0x18u)) <= int(u_alphacolorref >> 0x18u)) DISCARD; v.rgb = v.rgb * v.aaa + destColor.rgb * (splat3(1.0) - v.aaa); fragColor0 = v; highp uint v32 = packUnorm4x8(fragColor0); highp uint d32 = packUnorm4x8(destColor); v32 = (d32 & 0x00FFFFFFu) | (v32 & 0xFF000000u); v32 = (v32 & u_colorWriteMask & 0x00FFFFFFu) | (d32 & (~u_colorWriteMask | 0xFF000000u)); fragColor0 = unpackUnorm4x8(v32); } 1 1 1 2024-11-04
Vulkan error in shader compilation: info: ERROR: 0:56: 'length' : no matching overloaded function found ERROR: 0:56: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 01000000:80000929 HWX C T LM Light: LightUberShader Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (std140, set = 0, binding = 4) uniform lightVars { vec4 u_ambient; vec3 u_matdiffuse; vec4 u_matspecular; vec3 u_matemissive; uint u_lightControl; // light ubershader control bits vec3 u_lightpos[4]; vec3 u_lightdir[4]; vec3 u_lightatt[4]; vec4 u_lightangle_spotCoef[4]; vec3 u_lightambient[4]; vec3 u_lightdiffuse[4]; vec3 u_lightspecular[4]; }; layout (location = 0) in vec3 position; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; layout (location = 2) out lowp vec3 v_color1; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(0.0, 0.0, 1.0, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = ((u_lightControl & (1u << 0x14u)) != 0x0u) ? color0 : u_matambientalpha; vec3 diffuseColor = ((u_lightControl & (1u << 0x15u)) != 0x0u) ? color0.rgb : u_matdiffuse; vec3 specularColor = ((u_lightControl & (1u << 0x16u)) != 0x0u) ? color0.rgb : u_matspecular.rgb; lowp vec4 lightSum0 = u_ambient * ambientColor + vec4(u_matemissive, 0.0); lowp vec3 lightSum1 = splat3(0.0); vec3 toLight; lowp vec3 diffuse; float distance; lowp float lightScale; mediump float ldot; lowp float angle; uint comp; uint type; float attenuation; for (uint i = 0; i < 4; i++) { if ((u_lightControl & (0x1u << i)) != 0x0u) { comp = (u_lightControl >> uint(0x4u + 0x4u * i)) & 0x3u; type = (u_lightControl >> uint(0x4u + 0x4u * i + 0x2u)) & 0x3u; toLight = u_lightpos[i]; if (type != 0x0u) { toLight -= worldpos; distance = length(toLight); toLight /= distance; attenuation = clamp(1.0 / dot(u_lightatt[i], vec3(1.0, distance, distance*distance)), 0.0, 1.0); if (type == 0x01u) { lightScale = attenuation; } else { angle = dot(u_lightdir[i], toLight); if (angle >= u_lightangle_spotCoef[i].x) { lightScale = attenuation * (u_lightangle_spotCoef[i].y <= 0.0 ? 1.0 : pow(angle, u_lightangle_spotCoef[i].y)); } else { lightScale = 0.0; } } } else { lightScale = 1.0; } ldot = dot(toLight, worldnormal); if (comp == 0x2u) { ldot = u_matspecular.a > 0.0 ? pow(max(ldot, 0.0), u_matspecular.a) : 1.0; } diffuse = (u_lightdiffuse[i] * diffuseColor) * max(ldot, 0.0); if (comp == 0x1u && ldot > 0.0) { if (u_matspecular.a > 0.0) { ldot = dot(normalize(toLight + vec3(0.0, 0.0, 1.0)), worldnormal); ldot = pow(max(ldot, 0.0), u_matspecular.a); } else { ldot = 1.0; } lightSum1 += u_lightspe 1 1 1 2024-10-24
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:37: 'floor' : no matching overloaded function found ERROR: 0:37: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; // 10190000:0020d000 Fog FragUber AlphaTest > TestDiscardToZero layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 1) in lowp vec4 v_color0; layout (location = 3) in highp float v_fogdepth; int roundAndScaleTo255i(in highp float x) { return int(floor(x * 255.0 + 0.5)); } layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 v = v_color0; float fogCoef = clamp(v_fogdepth, 0.0, 1.0); v = mix(vec4(u_fogcolor, v.a), v, fogCoef); if ((roundAndScaleTo255i(v.a) & int(u_alphacolormask >> 0x18u)) <= int(u_alphacolorref >> 0x18u)) v.a = 0.0; fragColor0 = v; } 1 1 1 2024-10-24
Vulkan error in shader compilation: info: ERROR: 0:40: 'length' : no matching overloaded function found ERROR: 0:40: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 00000000:00000920 HWX T Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (location = 0) in vec3 position; layout (location = 1) in vec2 texcoord; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(0.0, 0.0, 1.0, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = u_matambientalpha; v_texcoord = vec3(texcoord.xy * u_uvscaleoffset.xy, 0.0); v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } vec3 projPos = outPos.xyz / outPos.w; float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w; if (u_cullRangeMin.w <= 0.0 || projZ * outPos.w > -outPos.w) { if ((projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y) || (projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y)) { outPos.xyzw = u_cullRangeMax.wwww; } } if (u_cullRangeMin.w <= 0.0) { if (projPos.z < u_cullRangeMin.z || projPos.z > u_cullRangeMax.z) { outPos.xyzw = u_cullRangeMax.wwww; } } gl_ClipDistance[1] = projZ * outPos.w + outPos.w + 0.000001; if (u_cullRangeMin.w > 0.0 && u_depthRange.w != 0.0f) { gl_CullDistance[0] = projPos.z - u_cullRangeMin.z; gl_CullDistance[1] = u_cullRangeMax.z - projPos.z; } else { gl_CullDistance[0] = 0.0; gl_CullDistance[1] = 0.0; } gl_Position = outPos; } 1 1 1 2024-10-24
Vulkan error in shader compilation: info: ERROR: 0:56: 'length' : no matching overloaded function found ERROR: 0:56: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 01000000:80120b21 HWX T N LM UVEnv Light: LightUberShader 0: c:0 t:0 1: c:0 t:0 Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec2 u_texNoAlphaMul; float pad1; float pad2; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; }; layout (std140, set = 0, binding = 4) uniform lightVars { vec4 u_ambient; vec3 u_matdiffuse; vec4 u_matspecular; vec3 u_matemissive; uint u_lightControl; // light ubershader control bits vec3 u_lightpos[4]; vec3 u_lightdir[4]; vec3 u_lightatt[4]; vec4 u_lightangle_spotCoef[4]; vec3 u_lightambient[4]; vec3 u_lightdiffuse[4]; vec3 u_lightspecular[4]; }; layout (location = 0) in vec3 position; layout (location = 2) in vec3 normal; layout (location = 1) in vec2 texcoord; layout (location = 1) out lowp vec4 v_color0; layout (location = 2) out lowp vec3 v_color1; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(normal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; vec3 diffuseColor = u_matdiffuse.rgb; vec3 specularColor = u_matspecular.rgb; lowp vec4 lightSum0 = u_ambient * ambientColor + vec4(u_matemissive, 0.0); lowp vec3 lightSum1 = splat3(0.0); vec3 toLight; lowp vec3 diffuse; float distance; lowp float lightScale; mediump float ldot; lowp float angle; uint comp; uint type; float attenuation; for (uint i = 0; i < 4; i++) { if ((u_lightControl & (0x1u << i)) != 0x0u) { comp = (u_lightControl >> uint(0x4u + 0x4u * i)) & 0x3u; type = (u_lightControl >> uint(0x4u + 0x4u * i + 0x2u)) & 0x3u; toLight = u_lightpos[i]; if (type != 0x0u) { toLight -= worldpos; distance = length(toLight); toLight /= distance; attenuation = clamp(1.0 / dot(u_lightatt[i], vec3(1.0, distance, distance*distance)), 0.0, 1.0); if (type == 0x01u) { lightScale = attenuation; } else { angle = dot(u_lightdir[i], toLight); if (angle >= u_lightangle_spotCoef[i].x) { lightScale = attenuation * (u_lightangle_spotCoef[i].y <= 0.0 ? 1.0 : pow(angle, u_lightangle_spotCoef[i].y)); } else { lightScale = 0.0; } } } else { lightScale = 1.0; } ldot = dot(toLight, worldnormal); if (comp == 0x2u) { ldot = u_matspecular.a > 0.0 ? pow(max(ldot, 0.0), u_matspecular.a) : 1.0; } diffuse = (u_lightdiffuse[i] * diffuseColor) * max(ldot, 0.0); if (comp == 0x1u && ldot > 0.0) { if (u_matspecular.a > 0.0) { ldot = dot(normalize(toLight + vec3(0.0, 0.0, 1.0)), worldnormal); ldot = pow(max(ldot, 0.0), u_matspecular.a); } else { ldot = 1.0; } lightSum1 += u_lightspecular[i] * specularColor * ldot * lightScale; } lightSum0.rgb += (u_lightambient[i] * ambientColor.rgb + diffuse) * lightScale; } } 1 1 1 2024-10-24
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:46: 'h_depth' : undeclared identifier ERROR: 0:46: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; layout (early_fragment_tests) in; layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec2 u_fogcoef; float u_stencilReplaceValue; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; int u_pad3; vec3 u_fogcolor; vec3 u_texenv; ivec4 u_alphacolorref; ivec4 u_alphacolormask; vec3 u_blendFixA; vec3 u_blendFixB; vec4 u_texclamp; vec2 u_texclampoff; }; layout (binding = 0) uniform sampler2D tex; layout (location = 1) flat in lowp vec4 v_color0; layout (location = 0) in highp vec3 v_texcoord; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 t = texture(tex, v_texcoord.xy); vec4 p = v_color0; vec4 v = p * t; if (h_depth > 0.000000) v.rgb = vec3(0.0); fragColor0 = v; if (h_normal.x > -0.5) fragColor0.rgb = h_normal.xyz; } 1 1 1 2024-10-02
Vulkan error in shader compilation: info: WARNING: 0:4: '#extension' : extension not supported: GL_ARB_conservative_depth ERROR: 0:42: 'h_depth' : undeclared identifier ERROR: 0:42: '' : compilation terminated ERROR: 2 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #extension GL_ARB_conservative_depth : enable #extension GL_ARB_shader_image_load_store : enable #define splat3(x) vec3(x) #define DISCARD discard precision lowp float; precision highp int; layout (early_fragment_tests) in; layout (std140, set = 0, binding = 3) uniform baseUBO { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec2 u_fogcoef; float u_stencilReplaceValue; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; int u_pad3; vec3 u_fogcolor; vec3 u_texenv; ivec4 u_alphacolorref; ivec4 u_alphacolormask; vec3 u_blendFixA; vec3 u_blendFixB; vec4 u_texclamp; vec2 u_texclampoff; }; layout (location = 1) in lowp vec4 v_color0; layout (location = 0, index = 0) out vec4 fragColor0; void main() { vec4 v = v_color0; if (h_depth > 0.000000) v.rgb = vec3(0.0); fragColor0 = v; if (h_normal.x > -0.5) fragColor0.rgb = h_normal.xyz; } 1 1 1 2024-10-02
Vulkan error in shader compilation: info: WARNING: 0:45: 'layout' : useless application of layout qualifier ERROR: 0:121: 'normal' : undeclared identifier ERROR: 0:121: 'z' : vector swizzle selection out of range ERROR: 0:121: '' : compilation terminated ERROR: 3 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable layout (std140, set = 0, binding = 3) uniform baseVars { mat4 proj_mtx; mat4 proj_through_mtx; mat3x4 view_mtx; mat3x4 world_mtx; mat3x4 tex_mtx; vec4 uvscaleoffset; vec4 depthRange; vec2 fogcoef; float stencilReplace; vec4 matambientalpha; uint spline_counts; uint depal_mask_shift_off_fmt; int pad2; int pad3; vec4 cullRangeMin; vec4 cullRangeMax; vec3 fogcolor; vec3 texenv; ivec4 alphacolorref; ivec4 alphacolormask; vec3 blendFixA; vec3 blendFixB; vec4 texclamp; vec2 texclampoff; } base; layout (location = 0) in vec3 position; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) out vec4 v_color0; layout (location = 0) out vec3 v_texcoord; struct TessData { vec4 pos; vec4 uv; vec4 color; }; layout (std430, set = 0, binding = 6) readonly buffer s_tess_data { TessData data[]; } tess_data; layout (std430) struct TessWeight { vec4 basis; vec4 deriv; }; layout (std430, set = 0, binding = 7) readonly buffer s_tess_weights_u { TessWeight data[]; } tess_weights_u; layout (std430, set = 0, binding = 8) readonly buffer s_tess_weights_v { TessWeight data[]; } tess_weights_v; vec2 tess_sample(in vec2 points[16], mat4 weights) { vec2 pos = vec2(0.0); pos += weights[0][0] * points[0]; pos += weights[0][1] * points[1]; pos += weights[0][2] * points[2]; pos += weights[0][3] * points[3]; pos += weights[1][0] * points[4]; pos += weights[1][1] * points[5]; pos += weights[1][2] * points[6]; pos += weights[1][3] * points[7]; pos += weights[2][0] * points[8]; pos += weights[2][1] * points[9]; pos += weights[2][2] * points[10]; pos += weights[2][3] * points[11]; pos += weights[3][0] * points[12]; pos += weights[3][1] * points[13]; pos += weights[3][2] * points[14]; pos += weights[3][3] * points[15]; return pos; } vec3 tess_sample(in vec3 points[16], mat4 weights) { vec3 pos = vec3(0.0); pos += weights[0][0] * points[0]; pos += weights[0][1] * points[1]; pos += weights[0][2] * points[2]; pos += weights[0][3] * points[3]; pos += weights[1][0] * points[4]; pos += weights[1][1] * points[5]; pos += weights[1][2] * points[6]; pos += weights[1][3] * points[7]; pos += weights[2][0] * points[8]; pos += weights[2][1] * points[9]; pos += weights[2][2] * points[10]; pos += weights[2][3] * points[11]; pos += weights[3][0] * points[12]; pos += weights[3][1] * points[13]; pos += weights[3][2] * points[14]; pos += weights[3][3] * points[15]; return pos; } vec4 tess_sample(in vec4 points[16], mat4 weights) { vec4 pos = vec4(0.0); pos += weights[0][0] * points[0]; pos += weights[0][1] * points[1]; pos += weights[0][2] * points[2]; pos += weights[0][3] * points[3]; pos += weights[1][0] * points[4]; pos += weights[1][1] * points[5]; pos += weights[1][2] * points[6]; pos += weights[1][3] * points[7]; pos += weights[2][0] * points[8]; pos += weights[2][1] * points[9]; pos += weights[2][2] * points[10]; pos += weights[2][3] * points[11]; pos += weights[3][0] * points[12]; pos += weights[3][1] * points[13]; pos += weights[3][2] * points[14]; pos += weights[3][3] * points[15]; return pos; } struct Tess { vec3 pos; vec2 tex; vec4 col; }; void tessellate(out Tess tess) { ivec2 point_pos = ivec2(position.z, normal.z) * 3; ivec2 weight_idx = ivec2(position.xy); vec3 _pos[16]; vec2 _tex[16]; vec4 _col[16]; int index; index = (0 + point_pos.y) * int(base.spline_counts) + (0 + point_pos.x); _pos[0] = tess_data.data[index].pos.xyz; _tex[0] = tess_data.data[index].uv.xy; _col[0] = tess_data.data[index].color; 1 1 1 2024-08-27
Vulkan error in shader compilation: info: ERROR: 0:41: 'gl_Position' : identifier not previously declared ERROR: 1 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 00000000:0000000a THR C layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (location = 0) in vec4 position; layout (location = 2) in float fog; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; void main() { v_texcoord = vec3(texcoord, 1.0); v_color0 = color0; v_fogdepth = fog; vec4 outPos = mul(u_proj_through, vec4(position.xyz, 1.0)); gl_Position = outPos; } 1 1 1 2024-05-03
Vulkan error in shader compilation: info: ERROR: 0:54: 'gl_Position' : identifier not previously declared ERROR: 1 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 01000000:80000b20 HWX T N Light: LightUberShader Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (std140, set = 0, binding = 4) uniform lightVars { vec4 u_ambient; vec3 u_matdiffuse; vec4 u_matspecular; vec3 u_matemissive; uint u_lightControl; // light ubershader control bits vec3 u_lightpos[4]; vec3 u_lightdir[4]; vec3 u_lightatt[4]; vec4 u_lightangle_spotCoef[4]; vec3 u_lightambient[4]; vec3 u_lightdiffuse[4]; vec3 u_lightspecular[4]; }; layout (location = 0) in vec3 position; layout (location = 2) in vec3 normal; layout (location = 1) in vec2 texcoord; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(normal, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; vec3 diffuseColor = u_matdiffuse.rgb; vec3 specularColor = u_matspecular.rgb; lowp vec4 lightSum0 = u_ambient * ambientColor + vec4(u_matemissive, 0.0); lowp vec3 lightSum1 = splat3(0.0); vec3 toLight; lowp vec3 diffuse; float distance; lowp float lightScale; mediump float ldot; lowp float angle; uint comp; uint type; float attenuation; for (uint i = 0; i < 4; i++) { if ((u_lightControl & (0x1u << i)) != 0x0u) { comp = (u_lightControl >> uint(0x4u + 0x4u * i)) & 0x3u; type = (u_lightControl >> uint(0x4u + 0x4u * i + 0x2u)) & 0x3u; toLight = u_lightpos[i]; if (type != 0x0u) { toLight -= worldpos; distance = length(toLight); toLight /= distance; attenuation = clamp(1.0 / dot(u_lightatt[i], vec3(1.0, distance, distance*distance)), 0.0, 1.0); if (type == 0x01u) { lightScale = attenuation; } else { angle = dot(u_lightdir[i], toLight); if (angle >= u_lightangle_spotCoef[i].x) { lightScale = attenuation * (u_lightangle_spotCoef[i].y <= 0.0 ? 1.0 : pow(angle, u_lightangle_spotCoef[i].y)); } else { lightScale = 0.0; } } } else { lightScale = 1.0; } ldot = dot(toLight, worldnormal); if (comp == 0x2u) { ldot = u_matspecular.a > 0.0 ? pow(max(ldot, 0.0), u_matspecular.a) : 1.0; } diffuse = (u_lightdiffuse[i] * diffuseColor) * max(ldot, 0.0); if (comp == 0x1u) { if (ldot >= 0.0) { if (u_matspecular.a > 0.0) { ldot = dot(normalize(toLight + vec3(0.0, 0.0, 1.0)), worldnormal); ldot = pow(max(ldot, 0.0), u_matspecular.a); } else { ldot = 1.0; } lightSum1 += u_lightspecular[i] * specularColor * ldot * lightScale; } } lightSum0.rgb += (u_lightambient[i] * ambientColor.rgb + diffuse) * lightScale; } } v_color0 = clamp(clamp(lightSum0, 0.0, 1.0) + vec4(lightSum1, 0.0), 1 1 1 2024-05-03
Vulkan error in shader compilation: info: ERROR: 0:39: 'gl_Position' : identifier not previously declared ERROR: 1 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 00000000:00000128 HWX C Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (location = 0) in vec3 position; layout (location = 5) in vec4 color0; layout (location = 1) out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; vec3 normalizeOr001(vec3 v) { return length(v) == 0.0 ? vec3(0.0, 0.0, 1.0) : normalize(v); } void main() { vec3 worldpos = mul(vec4(position, 1.0), u_world).xyz; mediump vec3 worldnormal = normalizeOr001(mul(vec4(0.0, 0.0, 1.0, 0.0), u_world).xyz); vec4 viewPos = vec4(mul(vec4(worldpos, 1.0), u_view).xyz, 1.0); vec4 outPos = mul(u_proj, viewPos); vec4 ambientColor = u_matambientalpha; v_color0 = color0; v_texcoord = splat3(0.0); v_fogdepth = (viewPos.z + u_fogcoef.x) * u_fogcoef.y; if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } vec3 projPos = outPos.xyz / outPos.w; float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w; if (u_cullRangeMin.w <= 0.0 || projZ * outPos.w > -outPos.w) { if ((projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y) || (projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y)) { outPos.xyzw = u_cullRangeMax.wwww; } } if (u_cullRangeMin.w <= 0.0) { if (projPos.z < u_cullRangeMin.z || projPos.z > u_cullRangeMax.z) { outPos.xyzw = u_cullRangeMax.wwww; } } gl_ClipDistance[1] = projZ * outPos.w + outPos.w + 0.000001; if (u_cullRangeMin.w > 0.0 && u_depthRange.w != 0.0f) { gl_CullDistance[0] = projPos.z - u_cullRangeMin.z; gl_CullDistance[1] = u_cullRangeMax.z - projPos.z; } else { gl_CullDistance[0] = 0.0; gl_CullDistance[1] = 0.0; } gl_Position = outPos; } 1 1 1 2024-05-03
Vulkan error in shader compilation: info: ERROR: 0:41: 'gl_Position' : identifier not previously declared ERROR: 1 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 40000000:00000028 C Flat Cull layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (location = 0) in vec4 position; layout (location = 2) in float fog; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) flat out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; void main() { v_texcoord = vec3(texcoord, 1.0); v_color0 = color0; v_fogdepth = fog; mat2 displayRotation = mat2( u_rotation == 0.0 ? 1.0 : (u_rotation == 2.0 ? -1.0 : 0.0), u_rotation == 1.0 ? 1.0 : (u_rotation == 3.0 ? -1.0 : 0.0), u_rotation == 3.0 ? 1.0 : (u_rotation == 1.0 ? -1.0 : 0.0), u_rotation == 0.0 ? 1.0 : (u_rotation == 2.0 ? -1.0 : 0.0) ); vec4 pos = position; pos.xy = mul(displayRotation, pos.xy); vec4 outPos = pos; if (u_depthRange.y >= 1.0) { gl_ClipDistance[0] = outPos.z; } else if (u_depthRange.x + u_depthRange.y <= 65534.0) { gl_ClipDistance[0] = outPos.w - outPos.z; } else { gl_ClipDistance[0] = 0.0; } vec3 projPos = outPos.xyz / outPos.w; float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w; if (u_cullRangeMin.w <= 0.0 || projZ * outPos.w > -outPos.w) { if ((projPos.x < u_cullRangeMin.x || projPos.y < u_cullRangeMin.y) || (projPos.x > u_cullRangeMax.x || projPos.y > u_cullRangeMax.y)) { outPos.xyzw = u_cullRangeMax.wwww; } } if (u_cullRangeMin.w <= 0.0) { if (projPos.z < u_cullRangeMin.z || projPos.z > u_cullRangeMax.z) { outPos.xyzw = u_cullRangeMax.wwww; } } gl_ClipDistance[1] = projZ * outPos.w + outPos.w + 0.000001; if (u_cullRangeMin.w > 0.0 && u_depthRange.w != 0.0f) { gl_CullDistance[0] = projPos.z - u_cullRangeMin.z; gl_CullDistance[1] = u_cullRangeMax.z - projPos.z; } else { gl_CullDistance[0] = 0.0; gl_CullDistance[1] = 0.0; } gl_Position = outPos; } 1 1 1 2024-05-03
Vulkan error in shader compilation: info: ERROR: 0:41: 'gl_Position' : identifier not previously declared ERROR: 1 compilation errors. No code generated. / code: #version 450 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable #define mul(x, y) ((x) * (y)) #define splat3(x) vec3(x) precision highp float; // 40000000:0000000a THR C Flat layout (std140, set = 0, binding = 3) uniform baseVars { mat4 u_proj; mat4 u_proj_through; mat3x4 u_view; mat3x4 u_world; mat3x4 u_texmtx; vec4 u_uvscaleoffset; vec4 u_depthRange; vec4 u_matambientalpha; vec4 u_cullRangeMin; vec4 u_cullRangeMax; uint u_spline_counts; uint u_depal_mask_shift_off_fmt; uint u_colorWriteMask; float u_mipBias; vec3 u_fogcolor; uint u_alphacolorref; vec3 u_texenv; uint u_alphacolormask; vec3 u_blendFixA; float u_stencilReplaceValue; vec3 u_blendFixB; float u_rotation; vec4 u_texclamp; vec2 u_texclampoff; vec2 u_fogcoef; float u_texNoAlpha; float u_texMul; float pad1; float pad2; }; layout (location = 0) in vec4 position; layout (location = 2) in float fog; layout (location = 1) in vec2 texcoord; layout (location = 5) in vec4 color0; layout (location = 1) flat out lowp vec4 v_color0; layout (location = 0) out highp vec3 v_texcoord; layout (location = 3) out highp float v_fogdepth; invariant gl_Position; void main() { v_texcoord = vec3(texcoord, 1.0); v_color0 = color0; v_fogdepth = fog; vec4 outPos = mul(u_proj_through, vec4(position.xyz, 1.0)); gl_Position = outPos; } 1 1 1 2024-05-03

« Previous   Next »