您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
19 行
508 B
19 行
508 B
#ifndef __TILEDLIGHTINGTEMPLATE_H__
|
|
#define __TILEDLIGHTINGTEMPLATE_H__
|
|
|
|
|
|
#include "TiledLightingUtils.hlsl"
|
|
#include "LightingTemplate.hlsl"
|
|
|
|
|
|
|
|
float3 ExecuteLightList(out uint numLightsProcessed, uint2 pixCoord, float3 vP, float3 vPw, float3 Vworld)
|
|
{
|
|
uint start = 0, numLights = 0;
|
|
GetCountAndStart(start, numLights, pixCoord, vP.z, DIRECT_LIGHT);
|
|
|
|
numLightsProcessed = numLights; // mainly for debugging/heat maps
|
|
return ExecuteLightList(start, numLights, vP, vPw, Vworld);
|
|
}
|
|
|
|
#endif
|