浏览代码

update script for List API Change from Length to Size

/main
Filip Iliescu 7 年前
当前提交
14f49160
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 12
      Assets/ScriptableRenderPipeline/MobileRenderPipeline/ClassicDeferred/ClassicDeferredPipeline.cs

12
Assets/ScriptableRenderPipeline/MobileRenderPipeline/ClassicDeferred/ClassicDeferredPipeline.cs


// DST_COL = DST_COL + DST_ALPHA * SRC_COLOR
// DST_ALPHA = DST_ALPHA * SRC_ALPHA
int numProbes = probes.Length;
int numProbes = probes.Count;
for (int i = numProbes-1; i >= 0; i--)
{
var rl = probes [i];

m_FrameId.frameCount++;
// get the indices for all lights that want to have shadows
m_ShadowRequests.Clear();
m_ShadowRequests.Capacity = inputs.visibleLights.Length;
int lcnt = inputs.visibleLights.Length;
m_ShadowRequests.Capacity = inputs.visibleLights.Count;
int lcnt = inputs.visibleLights.Count;
for (int i = 0; i < lcnt; ++i)
{
VisibleLight vl = inputs.visibleLights[i];

void RenderLightsDeferred (Camera camera, CullResults inputs, CommandBuffer cmd, ScriptableRenderContext loop)
{
int lightCount = inputs.visibleLights.Length;
int lightCount = inputs.visibleLights.Count;
for (int lightNum = 0; lightNum < lightCount; lightNum++)
{
VisibleLight light = inputs.visibleLights[lightNum];

private void SetupLightShaderVariables(CullResults cull, Camera camera, ScriptableRenderContext context)
{
int totalLightCount = cull.visibleLights.Length;
int totalLightCount = cull.visibleLights.Count;
InitializeLightData();
var w = camera.pixelWidth;

//Plane eyePlane = new Plane ();
//eyePlane.SetNormalAndPosition(viewDirNormalized, camera.transform.position);
int probeCount = cull.visibleReflectionProbes.Length;
int probeCount = cull.visibleReflectionProbes.Count;
int finalProbeCount = probeCount;
var lightData = new SFiniteLightData[probeCount];
int idx = 0;

正在加载...
取消
保存