浏览代码

[PlanarReflection] (wip) fixing planar probe projection

/main
Frédéric Vauchelles 7 年前
当前提交
92bcb4ea
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 1
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/LightLoop.cs
  2. 3
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/Lit.hlsl

1
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/LightLoop.cs


{
// Zero out the translation component.
gpuView *= Matrix4x4.Translate(camera.transform.position);
capturePosition -= camera.transform.position;
}
var vp = gpuProj * gpuView;

3
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/Lit.hlsl


//weight *= sampleWeight;
uint index = lightData.envIndex >> 1;
//float2 positionNCD = ComputeNormalizedDeviceCoordinates(_Env2DCapturePositionWS[index] + R, _Env2DCaptureVP[index]);
texCoord = positionNCD.xyy;
float4 preLD = SampleEnv(lightLoopContext, lightData.envIndex, texCoord, iblMipLevel);

正在加载...
取消
保存