您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
27 行
1.1 KiB
27 行
1.1 KiB
using UnityEngine.Experimental.Rendering;
|
|
|
|
namespace UnityEditor.Experimental.Rendering.HDPipeline
|
|
{
|
|
class SerializedShadowInitParameters
|
|
{
|
|
public SerializedProperty root;
|
|
|
|
public SerializedProperty shadowAtlasWidth;
|
|
public SerializedProperty shadowAtlasHeight;
|
|
|
|
public SerializedProperty maxPointLightShadows;
|
|
public SerializedProperty maxSpotLightShadows;
|
|
public SerializedProperty maxDirectionalLightShadows;
|
|
|
|
public SerializedShadowInitParameters(SerializedProperty root)
|
|
{
|
|
this.root = root;
|
|
|
|
shadowAtlasWidth = root.Find((ShadowInitParameters s) => s.shadowAtlasWidth);
|
|
shadowAtlasHeight = root.Find((ShadowInitParameters s) => s.shadowAtlasHeight);
|
|
maxPointLightShadows = root.Find((ShadowInitParameters s) => s.maxPointLightShadows);
|
|
maxSpotLightShadows = root.Find((ShadowInitParameters s) => s.maxSpotLightShadows);
|
|
maxDirectionalLightShadows = root.Find((ShadowInitParameters s) => s.maxDirectionalLightShadows);
|
|
}
|
|
}
|
|
}
|