浏览代码

HDRP: Fix reflection probe preview at wrong location (due to camera relative rendereing)

/main
sebastienlagarde 6 年前
当前提交
666cd772
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 1
      com.unity.render-pipelines.high-definition/HDRP/Editor/RenderPipelineResources/ReflectionProbesPreview.shader

1
com.unity.render-pipelines.high-definition/HDRP/Editor/RenderPipelineResources/ReflectionProbesPreview.shader


v2f o;
// Transform local to world before custom vertex code
o.positionWS = TransformObjectToWorld(v.positionOS.xyz);
o.positionWS = GetCameraRelativePositionWS(o.positionWS);
o.positionCS = TransformWorldToHClip(o.positionWS);
o.normalWS = TransformObjectToWorldNormal(v.normalOS);

正在加载...
取消
保存