浏览代码

Clean up

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

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


float3 originWS;
float3 directionWS; // Normalized
float ratioLenToZ; // 1 / ViewSpaceZ
float ratioZtoLen; // ViewSpaceZ
};
float3 GetPointAtDistance(Ray ray, float t)

Ray ray;
ray.originWS = GetCurrentViewPosition();
ray.ratioLenToZ = sqrt(dot(dir, dir));
ray.ratioZtoLen = rsqrt(dot(dir, dir));
ray.directionWS = dir * ray.ratioZtoLen;
ray.ratioLenToZ = length(dir);
ray.directionWS = normalize(dir);
FillVolumetricLightingBuffer(ray, voxelCoord, tileCoord);
}
正在加载...
取消
保存