using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[ExecuteInEditMode]
public class GlobalPbrSetting : MonoBehaviour
{
    [Range(0, 1)]
    public float emission = 0f;

    [Range(0, 1)]
    public float roughness = 0f;

    [Range(0, 1)]
    public float baseColor = 0f;

    [Range(0, 1)]
    public float normal = 0f;

    static readonly int NightRainValue = Shader.PropertyToID("_NightRainValue");

    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        Shader.SetGlobalVector(NightRainValue, new Vector4(emission, roughness, baseColor, normal));
    }
}
