我们创建了 Fontainebleau 演示来说明摄影photogrammetry流程和 LayeredLit 着色器的使用。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

36 行
995 B

using System;
using UnityEngine;
using UnityEngine.Playables;
using UnityEngine.Timeline;
[Serializable]
public class ShadowsPlayable : PlayableBehaviour
{
public float maxDistance = 500;
[Range(1, 4)]
public int cascadeCount = 4;
[Range(0,1)]
public float split0 = 0.05f;
[Range(0, 1)]
public float split1 = 0.12f;
[Range(0, 1)]
public float split2 = 0.3f;
}
[Serializable]
public class ShadowsPlayableAsset : PlayableAsset, ITimelineClipAsset
{
public ShadowsPlayable shadowsPlayable = new ShadowsPlayable();
// Create the runtime version of the clip, by creating a copy of the template
public override Playable CreatePlayable(PlayableGraph graph, GameObject go)
{
return ScriptPlayable<ShadowsPlayable>.Create(graph, shadowsPlayable);
}
// Use this to tell the Timeline Editor what features this clip supports
public ClipCaps clipCaps
{
get { return ClipCaps.Blending | ClipCaps.Extrapolation; }
}
}