浏览代码

Load precomputed light.range

/Yibing-Project-2
Evgenii Golubev 7 年前
当前提交
c9aec5fe
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 3
      ScriptableRenderPipeline/HDRenderPipeline/Lighting/Volumetrics/Resources/VolumetricLighting.compute

3
ScriptableRenderPipeline/HDRenderPipeline/Lighting/Volumetrics/Resources/VolumetricLighting.compute


float3 o = mul(rotMat, ray.originWS - light.positionWS);
float3 d = mul(rotMat, ray.directionWS);
float range = light.size.x;
float3 boxPt1 = float3( 1, 1, rsqrt(light.invSqrAttenuationRadius));
float3 boxPt1 = float3( 1, 1, range);
float tEntr, tExit;

正在加载...
取消
保存