2017-12-05 16:44:52 +00:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
layout(binding = 0, std140) uniform Foo
|
|
|
|
{
|
|
|
|
layout(row_major) mat4 lightVP[64];
|
|
|
|
uint shadowCascadesNum;
|
|
|
|
int test;
|
|
|
|
} _11;
|
|
|
|
|
|
|
|
layout(location = 0) in vec3 fragWorld;
|
|
|
|
layout(location = 0) out int _entryPointOutput;
|
|
|
|
|
2018-09-27 09:10:22 +00:00
|
|
|
int _240;
|
2018-03-24 03:16:18 +00:00
|
|
|
|
|
|
|
void main()
|
2017-12-05 16:44:52 +00:00
|
|
|
{
|
2018-09-27 09:10:22 +00:00
|
|
|
uint _227;
|
2019-01-30 12:31:17 +00:00
|
|
|
int _236;
|
2018-03-24 03:16:18 +00:00
|
|
|
for (;;)
|
2017-12-05 16:44:52 +00:00
|
|
|
{
|
2018-09-27 09:10:22 +00:00
|
|
|
_227 = 0u;
|
2019-01-30 12:31:17 +00:00
|
|
|
bool _231;
|
|
|
|
int _237;
|
2018-09-27 09:10:22 +00:00
|
|
|
for (;;)
|
2017-12-05 16:44:52 +00:00
|
|
|
{
|
2019-01-30 12:31:17 +00:00
|
|
|
if (_227 < _11.shadowCascadesNum)
|
2018-03-24 03:16:18 +00:00
|
|
|
{
|
2018-09-27 09:10:22 +00:00
|
|
|
mat4 _228;
|
|
|
|
for (;;)
|
|
|
|
{
|
|
|
|
if (_11.test == 0)
|
|
|
|
{
|
|
|
|
_228 = mat4(vec4(0.5, 0.0, 0.0, 0.0), vec4(0.0, 0.5, 0.0, 0.0), vec4(0.0, 0.0, 0.5, 0.0), vec4(0.0, 0.0, 0.0, 1.0));
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
_228 = mat4(vec4(1.0, 0.0, 0.0, 0.0), vec4(0.0, 1.0, 0.0, 0.0), vec4(0.0, 0.0, 1.0, 0.0), vec4(0.0, 0.0, 0.0, 1.0));
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
vec4 _177 = (_228 * _11.lightVP[_227]) * vec4(fragWorld, 1.0);
|
|
|
|
float _179 = _177.z;
|
|
|
|
float _186 = _177.x;
|
|
|
|
float _188 = _177.y;
|
|
|
|
if ((((_179 >= 0.0) && (_179 <= 1.0)) && (max(_186, _188) <= 1.0)) && (min(_186, _188) >= 0.0))
|
|
|
|
{
|
|
|
|
_237 = int(_227);
|
2019-01-30 12:31:17 +00:00
|
|
|
_231 = true;
|
2018-09-27 09:10:22 +00:00
|
|
|
break;
|
|
|
|
}
|
2019-07-25 10:30:50 +00:00
|
|
|
_227++;
|
2018-09-27 09:10:22 +00:00
|
|
|
continue;
|
2018-03-24 03:16:18 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-09-27 09:10:22 +00:00
|
|
|
_237 = _240;
|
2019-01-30 12:31:17 +00:00
|
|
|
_231 = false;
|
2017-12-05 16:44:52 +00:00
|
|
|
break;
|
|
|
|
}
|
2018-03-12 13:58:40 +00:00
|
|
|
}
|
2019-01-30 12:31:17 +00:00
|
|
|
if (_231)
|
2017-12-05 16:44:52 +00:00
|
|
|
{
|
2019-01-30 12:31:17 +00:00
|
|
|
_236 = _237;
|
2018-03-24 03:16:18 +00:00
|
|
|
break;
|
2017-12-05 16:44:52 +00:00
|
|
|
}
|
2019-01-30 12:31:17 +00:00
|
|
|
_236 = -1;
|
2018-09-27 09:10:22 +00:00
|
|
|
break;
|
2017-12-05 16:44:52 +00:00
|
|
|
}
|
2019-01-30 12:31:17 +00:00
|
|
|
_entryPointOutput = _236;
|
2017-12-05 16:44:52 +00:00
|
|
|
}
|
|
|
|
|