When attempting to bake my lightmaps in my game, a recent issue has shown up where it fails to bake the indirect lighting on materials that have vertex colors and per-pixel lighting enabled, resulting in extremely dark shadows on those materials.
The errors that show up in the console are two:
Shader error in 'PSX/PSXLit': 'ApplyVertexColorPerPixelColorVertexColorModeColor': no matching 3 parameter function at /Users/PixelDough/Documents/Unity Projects/ProjectRemade/Packages/HPSXRP/Runtime/Material/PSXLit/PSXLitMetaPass.hlsl(115) (on d3d11)
and
Shader error in 'PSX/PSXLit': undeclared identifier 'vertexColorBlendMode' at /Users/PixelDough/Documents/Unity Projects/Project/Packages/HPSXRP/Runtime/Material/PSXLit/PSXLitMetaPass.hlsl(115) (on d3d11)
I have pics to show the comparison between before and after this bug started happening.
Before:
After:
When attempting to bake my lightmaps in my game, a recent issue has shown up where it fails to bake the indirect lighting on materials that have vertex colors and per-pixel lighting enabled, resulting in extremely dark shadows on those materials.
The errors that show up in the console are two:
Shader error in 'PSX/PSXLit': 'ApplyVertexColorPerPixelColorVertexColorModeColor': no matching 3 parameter function at /Users/PixelDough/Documents/Unity Projects/ProjectRemade/Packages/HPSXRP/Runtime/Material/PSXLit/PSXLitMetaPass.hlsl(115) (on d3d11)
andShader error in 'PSX/PSXLit': undeclared identifier 'vertexColorBlendMode' at /Users/PixelDough/Documents/Unity Projects/Project/Packages/HPSXRP/Runtime/Material/PSXLit/PSXLitMetaPass.hlsl(115) (on d3d11)
I have pics to show the comparison between before and after this bug started happening. Before:
After:
![image](https://user-images.githubusercontent.com/25268968/135157395-1815be5c-953a-494d-b9b2-ca1e27bcfe50.png)