diff options
| author | JMC47 <JMC4789@gmail.com> | 2024-06-11 21:13:24 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-11 21:13:24 -0400 |
| commit | 16c7869ab27852b4c9289355cb42ca1b5b8bfbf2 (patch) | |
| tree | d9ba4cb43237f8f9c62021f321a50004c2103ed4 /Source/Core/VideoCommon/ShaderGenCommon.cpp | |
| parent | 04c246d11f60719d20af67c230cfe0a866dcaf54 (diff) | |
| parent | 9d28c371e71586bbbf88a401cb3a160a9f139842 (diff) | |
Merge pull request #12721 from iwubcode/custom_shader_alpha
VideoCommon: allow custom shaders to set the alpha value
Diffstat (limited to 'Source/Core/VideoCommon/ShaderGenCommon.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/ShaderGenCommon.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/ShaderGenCommon.cpp b/Source/Core/VideoCommon/ShaderGenCommon.cpp index 57d9c4567f..d132847f14 100644 --- a/Source/Core/VideoCommon/ShaderGenCommon.cpp +++ b/Source/Core/VideoCommon/ShaderGenCommon.cpp @@ -379,6 +379,11 @@ void WriteCustomShaderStructDef(ShaderCode* out, u32 numtexgens) out->Write("const uint CUSTOM_SHADER_LIGHTING_ATTENUATION_TYPE_SPOT = {}u;\n", static_cast<u32>(AttenuationFunc::Spot)); + out->Write("struct CustomShaderOutput\n"); + out->Write("{{\n"); + out->Write("\tfloat4 main_rt;\n"); + out->Write("}};\n\n"); + out->Write("struct CustomShaderLightData\n"); out->Write("{{\n"); out->Write("\tfloat3 position;\n"); |
