diff --git a/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs b/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs index 6813a44026..72ae0b10e1 100644 --- a/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs +++ b/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs @@ -36,7 +36,7 @@ namespace Ryujinx.Graphics.Gpu.Shader /// /// Version of the codegen (to be changed when codegen or guest format change). /// - private const ulong ShaderCodeGenVersion = 2404; + private const ulong ShaderCodeGenVersion = 2412; // Progress reporting helpers private volatile int _shaderCount; diff --git a/Ryujinx.Graphics.Shader/CodeGen/Glsl/GlslGenerator.cs b/Ryujinx.Graphics.Shader/CodeGen/Glsl/GlslGenerator.cs index c430a21a62..5e097b1441 100644 --- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/GlslGenerator.cs +++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/GlslGenerator.cs @@ -76,14 +76,14 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl if ((context.Config.Flags & TranslationFlags.Feedback) != 0) { - context.AppendLine($"{DefaultNames.OAttributePrefix}{attr}_x = 0;"); - context.AppendLine($"{DefaultNames.OAttributePrefix}{attr}_y = 0;"); - context.AppendLine($"{DefaultNames.OAttributePrefix}{attr}_z = 0;"); - context.AppendLine($"{DefaultNames.OAttributePrefix}{attr}_w = 0;"); + context.AppendLine($"{DefaultNames.OAttributePrefix}{attr}_x = 0.0;"); + context.AppendLine($"{DefaultNames.OAttributePrefix}{attr}_y = 0.0;"); + context.AppendLine($"{DefaultNames.OAttributePrefix}{attr}_z = 0.0;"); + context.AppendLine($"{DefaultNames.OAttributePrefix}{attr}_w = 1.0;"); } else { - context.AppendLine($"{DefaultNames.OAttributePrefix}{attr} = vec4(0);"); + context.AppendLine($"{DefaultNames.OAttributePrefix}{attr} = vec4(0.0, 0.0, 0.0, 1.0);"); } } }