更新天气插件
This commit is contained in:
@@ -17,7 +17,7 @@ namespace Enviro
|
||||
private SerializedProperty shadowIntensity, ambientIntensityModifier,ambientMode, ambientUpdateIntervall,ambientUpdateEveryFrame, ambientSkyColorGradient, ambientEquatorColorGradient, ambientGroundColorGradient, ambientIntensityCurve;
|
||||
|
||||
#if ENVIRO_HDRP
|
||||
private SerializedProperty sunIntensityCurveHDRP, moonIntensityCurveHDRP, lightColorTemperatureHDRP, lightColorTintHDRP,ambientColorTintHDRP, controlExposure, sceneExposure, controlIndirectLighting, diffuseIndirectIntensity, reflectionIndirectIntensity;
|
||||
private SerializedProperty lightIntensityHDRP ,lightColorTemperatureHDRP,ambientColorTintHDRP, controlExposure, sceneExposure, controlIndirectLighting, diffuseIndirectIntensity, reflectionIndirectIntensity;
|
||||
#endif
|
||||
//On Enable
|
||||
public override void OnEnable()
|
||||
@@ -50,10 +50,8 @@ namespace Enviro
|
||||
ambientUpdateIntervall = serializedObj.FindProperty("Settings.ambientUpdateIntervall");
|
||||
ambientUpdateEveryFrame = serializedObj.FindProperty("Settings.ambientUpdateEveryFrame");
|
||||
#if ENVIRO_HDRP
|
||||
sunIntensityCurveHDRP = serializedObj.FindProperty("Settings.sunIntensityCurveHDRP");
|
||||
moonIntensityCurveHDRP = serializedObj.FindProperty("Settings.moonIntensityCurveHDRP");
|
||||
lightIntensityHDRP = serializedObj.FindProperty("Settings.lightIntensityHDRP");
|
||||
lightColorTemperatureHDRP = serializedObj.FindProperty("Settings.lightColorTemperatureHDRP");
|
||||
lightColorTintHDRP = serializedObj.FindProperty("Settings.lightColorTintHDRP");
|
||||
ambientColorTintHDRP = serializedObj.FindProperty("Settings.ambientColorTintHDRP");
|
||||
controlExposure = serializedObj.FindProperty("Settings.controlExposure");
|
||||
sceneExposure = serializedObj.FindProperty("Settings.sceneExposure");
|
||||
@@ -113,12 +111,11 @@ namespace Enviro
|
||||
EditorGUILayout.PropertyField(updateIntervallFrames);
|
||||
GUILayout.Space(5);
|
||||
EditorGUILayout.LabelField("Light Intensity",headerStyle);
|
||||
#if !ENVIRO_HDRP
|
||||
|
||||
EditorGUILayout.PropertyField(sunIntensityCurve);
|
||||
EditorGUILayout.PropertyField(moonIntensityCurve);
|
||||
#else
|
||||
EditorGUILayout.PropertyField(sunIntensityCurveHDRP);
|
||||
EditorGUILayout.PropertyField(moonIntensityCurveHDRP);
|
||||
#if ENVIRO_HDRP
|
||||
EditorGUILayout.PropertyField(lightIntensityHDRP);
|
||||
#endif
|
||||
DisableInputStart();
|
||||
EditorGUILayout.PropertyField(directLightIntensityModifier);
|
||||
@@ -126,11 +123,11 @@ namespace Enviro
|
||||
DisableInputEnd();
|
||||
GUILayout.Space(10);
|
||||
EditorGUILayout.LabelField("Light Color",headerStyle);
|
||||
#if !ENVIRO_HDRP
|
||||
|
||||
EditorGUILayout.PropertyField(sunColorGradient);
|
||||
EditorGUILayout.PropertyField(moonColorGradient);
|
||||
#else
|
||||
EditorGUILayout.PropertyField(lightColorTintHDRP);
|
||||
|
||||
#if ENVIRO_HDRP
|
||||
EditorGUILayout.PropertyField(lightColorTemperatureHDRP);
|
||||
#endif
|
||||
#if ENVIRO_HDRP
|
||||
@@ -213,11 +210,10 @@ namespace Enviro
|
||||
EditorGUILayout.PropertyField(reflectionIndirectIntensity);
|
||||
}
|
||||
GUILayout.Space(5);
|
||||
if(EnviroManager.instance.Sky != null)
|
||||
{
|
||||
|
||||
EditorGUILayout.LabelField("Indirect Color",headerStyle);
|
||||
EditorGUILayout.PropertyField(ambientColorTintHDRP);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
EditorGUILayout.EndToggleGroup();
|
||||
|
||||
Reference in New Issue
Block a user