|
|
|
|
|
|
#endif |
|
|
|
groupshared int ldsNrLightsFinal; |
|
|
|
|
|
|
|
groupshared int ldsCategoryListCount[LIGHTCATEGORY_COUNT]; // since LIGHTCATEGORY_COUNT is 3 |
|
|
|
groupshared int ldsCategoryListCount[LIGHTCATEGORY_COUNT]; |
|
|
|
|
|
|
|
#ifdef PERFORM_SPHERICAL_INTERSECTION_TESTS |
|
|
|
groupshared uint lightOffsSph; |
|
|
|
|
|
|
|
|
|
|
// All our cull data are in the same list, but at render time envLights are separated so we need to shit the index |
|
|
|
// to make it work correctly |
|
|
|
int shiftIndex[LIGHTCATEGORY_COUNT] = {0, 0, _EnvLightIndexShift}; // 3 for now, will throw an error if we change LIGHTCATEGORY_COUNT |
|
|
|
int shiftIndex[LIGHTCATEGORY_COUNT]; |
|
|
|
ZERO_INITIALIZE_ARRAY(int, shiftIndex, LIGHTCATEGORY_COUNT); |
|
|
|
shiftIndex[LIGHTCATEGORY_COUNT - 1] = _EnvLightIndexShift; |
|
|
|
|
|
|
|
for(int category=0; category<LIGHTCATEGORY_COUNT; category++) |
|
|
|
{ |
|
|
|