浏览代码

[PlanarReflection] Zero Initialize for EnvLightData

/main
Frédéric Vauchelles 7 年前
当前提交
32945c22
共有 1 个文件被更改,包括 1 次插入11 次删除
  1. 12
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightUtilities.hlsl

12
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightUtilities.hlsl


EnvLightData InitSkyEnvLightData(int envIndex)
{
EnvLightData output;
ZERO_INITIALIZE(EnvLightData, output);
SETTER_FLOAT3(output, capturePositionWS, float3(0.0, 0.0, 0.0));
SETTER_FLOAT3(output, influenceExtents, float3(0.0, 0.0, 0.0));
SETTER_FLOAT3(output, blendDistancePositive, float3(0.0, 0.0, 0.0));
SETTER_FLOAT3(output, blendDistanceNegative, float3(0.0, 0.0, 0.0));
SETTER_FLOAT3(output, blendNormalDistancePositive, float3(0.0, 0.0, 0.0));
SETTER_FLOAT3(output, blendNormalDistanceNegative, float3(0.0, 0.0, 0.0));
SETTER_FLOAT3(output, boxSideFadePositive, float3(0.0, 0.0, 0.0));
SETTER_FLOAT3(output, boxSideFadeNegative, float3(0.0, 0.0, 0.0));
SETTER_FLOAT3(output, sampleDirectionDiscardWS, float3(0.0, 0.0, 0.0));
SETTER_FLOAT3(output, proxyPositionWS, float3(0.0, 0.0, 0.0));
SETTER_FLOAT3(output, proxyExtents, float3(0.0, 0.0, 0.0));
return output;
}

正在加载...
取消
保存