浏览代码

fix report light and probe counts in fptl loop

fix report light and probe counts in fptl loop
/Branch_batcher
mmikk 8 年前
当前提交
d8908d08
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 7
      Assets/ScriptableRenderPipeline/fptl/FptlLighting.cs

7
Assets/ScriptableRenderPipeline/fptl/FptlLighting.cs


lightData[idxOut] = light;
}
}
var numLightsOut = offsets[LightDefinitions.DIRECT_LIGHT, numVolTypes - 1] + numEntries[LightDefinitions.DIRECT_LIGHT, numVolTypes - 1];
int numLightsOut = 0;
for(int v=0; v<numVolTypes; v++) numLightsOut += numEntries[LightDefinitions.DIRECT_LIGHT, v];
// probe.m_BlendDistance
// Vector3f extents = 0.5*Abs(probe.m_BoxSize);

lightData[idxOut] = lgtData;
}
var numProbesOut = offsets[LightDefinitions.REFLECTION_LIGHT, numVolTypes - 1] + numEntries[LightDefinitions.REFLECTION_LIGHT, numVolTypes - 1];
int numProbesOut = 0;
for(int v=0; v<numVolTypes; v++) numProbesOut += numEntries[LightDefinitions.REFLECTION_LIGHT, v];
for (var m = 0; m < numModels; m++)
{
for (var v = 0; v < numVolTypes; v++)

正在加载...
取消
保存