mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Missing one case type == GE_LIGHTTYPE_UNKNOWN
This commit is contained in:
1 parent
1981195c5b
commit
4899f67fa1
1 file changed
+1
-1
@@ -236,7 +236,7 @@ void GenerateVertexShader(int prim, char *buffer, bool useHWTransform) {
|
||||
if (type != GE_LIGHTTYPE_DIRECTIONAL)
|
||||
WRITE(p, "uniform mediump vec3 u_lightatt%i;\n", i);
|
||||
|
||||
if (type == GE_LIGHTTYPE_SPOT) {
|
||||
if (type == GE_LIGHTTYPE_SPOT || type == GE_LIGHTTYPE_UNKNOWN) {
|
||||
WRITE(p, "uniform mediump float u_lightangle%i;\n", i);
|
||||
WRITE(p, "uniform mediump float u_lightspotCoef%i;\n", i);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user