我们创建了 Fontainebleau 演示来说明摄影photogrammetry流程和 LayeredLit 着色器的使用。
 
 
 
 

15 行
490 B

using UnityEngine;
using GameplayIngredients;
using GameplayIngredients.Actions;
using UnityEngine.Rendering.HighDefinition;
public class ResetVolumetricsAction : ActionBase
{
public override void Execute(GameObject instigator = null)
{
var cam = Manager.Get<VirtualCameraManager>().Camera;
HDCamera hdCam = HDCamera.GetOrCreate(cam);
hdCam.Reset();
hdCam.volumetricHistoryIsValid = false;
hdCam.colorPyramidHistoryIsValid = false;
}
}