场景设计

This commit is contained in:
SoulliesOfficial
2026-01-12 03:22:16 -05:00
parent 33b1795c1f
commit d94241f36c
8645 changed files with 1242757 additions and 1039728 deletions

View File

@@ -0,0 +1,28 @@
using UnityEngine;
namespace AllIn13DShader
{
public class DemoLightUrpIntensity : MonoBehaviour
{
[SerializeField] private Light thisLight;
[SerializeField] private float urpIntensityMultiplier = 5f;
private void Start()
{
#if ALLIN13DSHADER_URP
thisLight.intensity *= urpIntensityMultiplier;
#else
float t = urpIntensityMultiplier; //This is preventing a compilation warning in the editor
#endif
}
private void Reset()
{
if(thisLight == null)
{
thisLight = GetComponent<Light>();
}
}
}
}