@@ -6,26 +6,7 @@ struct Light
6
6
{
7
7
int lightType;
8
8
highp float lightIntensity;
9
- bool lightCastShadow;
10
- int lightShadowMapIndex;
11
- int lightAngleAttenCurveType;
12
- int lightDistAttenCurveType;
13
- highp vec2 lightSize;
14
- ivec4 lightGUID;
15
- highp vec4 lightPosition;
16
- highp vec4 lightColor;
17
- highp vec4 lightDirection;
18
- highp vec4 lightDistAttenCurveParams[2 ];
19
- highp vec4 lightAngleAttenCurveParams[2 ];
20
- highp mat4 lightVP;
21
- highp vec4 padding[2 ];
22
- };
23
-
24
- struct Light_1
25
- {
26
- int lightType;
27
- highp float lightIntensity;
28
- uint lightCastShadow;
9
+ int lightCastShadow;
29
10
int lightShadowMapIndex;
30
11
int lightAngleAttenCurveType;
31
12
int lightDistAttenCurveType;
@@ -46,13 +27,13 @@ layout(binding = 0, std140) uniform PerFrameConstants
46
27
highp mat4 projectionMatrix;
47
28
highp vec4 camPos;
48
29
int numLights;
49
- Light_1 allLights[100 ];
30
+ Light allLights[100 ];
50
31
} _500;
51
32
52
33
layout (binding = 1 , std140) uniform PerBatchConstants
53
34
{
54
35
highp mat4 modelMatrix;
55
- } _1038 ;
36
+ } _1035 ;
56
37
57
38
struct constants_t
58
39
{
@@ -366,7 +347,7 @@ void main()
366
347
Light arg;
367
348
arg.lightType = _500.allLights[i].lightType;
368
349
arg.lightIntensity = _500.allLights[i].lightIntensity;
369
- arg.lightCastShadow = _500.allLights[i].lightCastShadow != 0u ;
350
+ arg.lightCastShadow = _500.allLights[i].lightCastShadow;
370
351
arg.lightShadowMapIndex = _500.allLights[i].lightShadowMapIndex;
371
352
arg.lightAngleAttenCurveType = _500.allLights[i].lightAngleAttenCurveType;
372
353
arg.lightDistAttenCurveType = _500.allLights[i].lightDistAttenCurveType;
@@ -389,7 +370,7 @@ void main()
389
370
Light arg_1;
390
371
arg_1.lightType = _500.allLights[i].lightType;
391
372
arg_1.lightIntensity = _500.allLights[i].lightIntensity;
392
- arg_1.lightCastShadow = _500.allLights[i].lightCastShadow != 0u ;
373
+ arg_1.lightCastShadow = _500.allLights[i].lightCastShadow;
393
374
arg_1.lightShadowMapIndex = _500.allLights[i].lightShadowMapIndex;
394
375
arg_1.lightAngleAttenCurveType = _500.allLights[i].lightAngleAttenCurveType;
395
376
arg_1.lightDistAttenCurveType = _500.allLights[i].lightDistAttenCurveType;
0 commit comments