mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-04 08:35:55 +00:00
LightingShaderGen: Always calculate lighting for both color channels
Cel-damage uses the color from the lighting stage of the vertex pipeline as texture coordinates, but sets numColorChans to zero. We now calculate the colors in all cases, but override the color before writing it from the vertex shader if numColorChans is set to a lower value.
This commit is contained in:
parent
18c1bf19ca
commit
efb9759862
7 changed files with 38 additions and 29 deletions
|
@ -45,5 +45,5 @@ static const char s_lighting_struct[] = "struct Light {\n"
|
|||
"};\n";
|
||||
|
||||
void GenerateLightingShaderCode(ShaderCode& object, const LightingUidData& uid_data, int components,
|
||||
u32 numColorChans, const char* inColorName, const char* dest);
|
||||
const char* inColorName, const char* dest);
|
||||
void GetLightingShaderUid(LightingUidData& uid_data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue