您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
27 行
727 B
27 行
727 B
#ifndef ONTILE_SHADOW_CONTEXT_HLSL
|
|
#define ONTILE_SHADOW_CONTEXT_HLSL
|
|
|
|
#define SHADOWCONTEXT_MAX_TEX2DARRAY 1
|
|
#define SHADOWCONTEXT_MAX_TEXCUBEARRAY 0
|
|
#define SHADOWCONTEXT_MAX_SAMPLER 0
|
|
#define SHADOWCONTEXT_MAX_COMPSAMPLER 1
|
|
|
|
#include "CoreRP/ShaderLibrary/Shadow/Shadow.hlsl"
|
|
|
|
TEXTURE2D_ARRAY(_ShadowmapExp_PCF);
|
|
SAMPLER_CMP(sampler_ShadowmapExp_PCF);
|
|
|
|
StructuredBuffer<ShadowData> _ShadowDatasExp;
|
|
StructuredBuffer<int4> _ShadowPayloads;
|
|
|
|
ShadowContext InitShadowContext()
|
|
{
|
|
ShadowContext sc;
|
|
sc.shadowDatas = _ShadowDatasExp;
|
|
sc.payloads = _ShadowPayloads;
|
|
sc.tex2DArray[0] = _ShadowmapExp_PCF;
|
|
sc.compSamplers[0] = sampler_ShadowmapExp_PCF;
|
|
return sc;
|
|
}
|
|
|
|
#endif // ONTILE_SHADOW_CONTEXT_HLSL
|