浏览代码

get rid of a static I don't need

get rid of a static I don't need
/main
mmikk 8 年前
当前提交
adef0b64
共有 2 个文件被更改,包括 2 次插入4 次删除
  1. 2
      Assets/ScriptableRenderLoop/fptl/FptlLighting.cs
  2. 4
      Assets/ScriptableRenderLoop/fptl/TiledLightingUtils.hlsl

2
Assets/ScriptableRenderLoop/fptl/FptlLighting.cs


cmd.SetGlobalFloat("g_fClustBase", m_clustLogBase);
cmd.SetGlobalFloat("g_fNearPlane", camera.nearClipPlane);
cmd.SetGlobalFloat("g_fFarPlane", camera.farClipPlane);
cmd.SetGlobalFloat("g_fLog2NumClusters", (float) g_iLog2NumClusters);
cmd.SetGlobalFloat("g_iLog2NumClusters", g_iLog2NumClusters);
cmd.SetGlobalFloat("g_isLogBaseBufferEnabled", gUseDepthBuffer ? 1 : 0);

4
Assets/ScriptableRenderLoop/fptl/TiledLightingUtils.hlsl


uniform float g_fNearPlane;
uniform float g_fFarPlane;
//uniform int g_iLog2NumClusters; // numClusters = (1<<g_iLog2NumClusters)
uniform float g_fLog2NumClusters;
static int g_iLog2NumClusters;
uniform int g_iLog2NumClusters;
#include "ClusteredUtils.h"

}
else
{
g_iLog2NumClusters = (int) g_fLog2NumClusters;
float logBase = g_fClustBase;
if(g_isLogBaseBufferEnabled)
logBase = g_logBaseBuffer[tileIDX.y*nrTilesX + tileIDX.x];

正在加载...
取消
保存