浏览代码

depth capturing always happens for ease of reproducing

/testing-depth-repo
Andrem 3 年前
当前提交
0846f86d
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 2
      Packages/com.verasl.water-system/Scripts/Rendering/PlanarReflections.cs
  2. 1
      Packages/com.verasl.water-system/Scripts/Water.cs

2
Packages/com.verasl.water-system/Scripts/Rendering/PlanarReflections.cs


private void ExecutePlanarReflections(ScriptableRenderContext context, Camera camera)
{
// we dont want to render planar reflections in reflections or previews
if (camera.cameraType == CameraType.Reflection || camera.cameraType == CameraType.Preview)
if (camera.cameraType == CameraType.Reflection || camera.cameraType == CameraType.Preview || camera.targetTexture != null)
return;
UpdateReflectionCamera(camera); // create reflected camera

1
Packages/com.verasl.water-system/Scripts/Water.cs


private void LateUpdate()
{
GerstnerWavesJobs.UpdateHeights();
CaptureDepthMap();
}
public void FragWaveNormals(bool toggle)

正在加载...
取消
保存