mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
ShaderGen: Fix per pixel lighting.
This commit is contained in:
parent
248d56d930
commit
f6d65a636e
7 changed files with 32 additions and 27 deletions
|
@ -153,4 +153,17 @@ static void DeclareUniform(T& object, API_TYPE api_type, bool using_ubos, const
|
|||
object.Write(";\n");
|
||||
}
|
||||
|
||||
struct LightingUidData
|
||||
{
|
||||
struct
|
||||
{
|
||||
u32 matsource : 1;
|
||||
u32 enablelighting : 1;
|
||||
u32 ambsource : 1;
|
||||
u32 diffusefunc : 2;
|
||||
u32 attnfunc : 2;
|
||||
u32 light_mask : 8;
|
||||
} lit_chans[4];
|
||||
};
|
||||
|
||||
#endif // _SHADERGENCOMMON_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue