浏览代码

adding the pre-pass on clustered

adding the pre-pass on clustered
/main
mmikk 8 年前
当前提交
962b7001
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9
      Assets/ScriptableRenderLoop/fptl/lightlistbuild-clustered.compute

9
Assets/ScriptableRenderLoop/fptl/lightlistbuild-clustered.compute


// build coarse list using AABB
#ifdef USE_TWO_PASS_TILED_LIGHTING
int NrBigTilesX = (nrTilesX+3)>>2;
const int bigTileIdx = (tileIDX.y>>2)*NrBigTilesX + (tileIDX.x>>2); // map the idx to 64x64 tiles
int nrBigTileLights = g_vBigTileLightList[MAX_NR_BIGTILE_LIGHTS_PLUSONE*bigTileIdx+0];
for(int l0=(int) t; l0<(int) nrBigTileLights; l0 += NR_THREADS)
{
int l = g_vBigTileLightList[MAX_NR_BIGTILE_LIGHTS_PLUSONE*bigTileIdx+l0+1];
#else
#endif
const float3 vMi = g_vBoundsBuffer[l];
const float3 vMa = g_vBoundsBuffer[l+g_iNrVisibLights];

正在加载...
取消
保存