浏览代码

Update API in water-system

/main
Wilfrid 6 年前
当前提交
b847315a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Packages/com.verasl.water-system/Scripts/Rendering/PlanerReflections.cs

4
Packages/com.verasl.water-system/Scripts/Rendering/PlanerReflections.cs


GameObject go =
new GameObject("Planar Refl Camera id" + GetInstanceID() + " for " + currentCamera.GetInstanceID(),
typeof(Camera), typeof(Skybox));
AdditionalCameraData lwrpCamData =
go.AddComponent(typeof(AdditionalCameraData)) as AdditionalCameraData;
LWRPAdditionalCameraData lwrpCamData =
go.AddComponent(typeof(LWRPAdditionalCameraData)) as LWRPAdditionalCameraData;
lwrpCamData.renderShadows = false; // turn off shadows for the reflection camera
var reflectionCamera = go.GetComponent<Camera>();
reflectionCamera.transform.SetPositionAndRotation(transform.position, transform.rotation);

正在加载...
取消
保存