|
|
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
-
- public class ChangeLod : MonoBehaviour
- {
- public int lodlevel = 300;
- public float alpha = 1.0f;
-
- // Start is called before the first frame update
- void Start()
- {
-
- }
-
- // Update is called once per frame
- void Update()
- {
- Shader.globalMaximumLOD = lodlevel;
- Shader.SetGlobalFloat("_GlobalSceneAlpha", alpha);
- }
- }
|