2024-01-15 19:26:08 +08:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Sirenix.OdinInspector;
|
|
|
|
|
using UnityEngine;
|
2024-01-15 20:25:49 +08:00
|
|
|
using UnityEngine.Serialization;
|
2024-01-15 19:26:08 +08:00
|
|
|
|
2024-02-22 14:33:40 +08:00
|
|
|
public enum PostProcessTextureUnitSize
|
|
|
|
|
{
|
|
|
|
|
_256 = 256,
|
|
|
|
|
_512 = 512,
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-15 19:26:08 +08:00
|
|
|
public class PostProcessInstructor : MonoBehaviour
|
|
|
|
|
{
|
2024-01-17 13:44:26 +08:00
|
|
|
[FormerlySerializedAs("combinedRoots")]
|
|
|
|
|
[LabelText("需要网格合并节点")]
|
2024-01-15 19:26:08 +08:00
|
|
|
[ListDrawerSettings(AlwaysAddDefaultValue = false)]
|
2024-01-17 13:44:26 +08:00
|
|
|
public List<Transform> rootsToCombine = new();
|
2024-01-15 19:26:08 +08:00
|
|
|
|
2024-01-17 13:44:26 +08:00
|
|
|
[FormerlySerializedAs("art")]
|
|
|
|
|
[LabelText("网格合并后父节点")]
|
|
|
|
|
public Transform combinedObjectsRoot;
|
2024-01-15 19:26:08 +08:00
|
|
|
|
|
|
|
|
[LabelText("地面")]
|
2024-01-16 14:23:05 +08:00
|
|
|
public GameObject ground;
|
2024-01-15 19:26:08 +08:00
|
|
|
|
|
|
|
|
[LabelText("雾")]
|
2024-01-16 14:23:05 +08:00
|
|
|
public GameObject fog;
|
2024-01-15 19:26:08 +08:00
|
|
|
|
|
|
|
|
[LabelText("后处理预制体")]
|
|
|
|
|
public bool processPrefab;
|
2024-02-22 14:33:40 +08:00
|
|
|
|
|
|
|
|
[LabelText("单位贴图尺寸")]
|
|
|
|
|
public PostProcessTextureUnitSize postProcessTextureUnitSize = PostProcessTextureUnitSize._256;
|
2024-01-15 19:26:08 +08:00
|
|
|
}
|