源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
453 B

  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class ChangeLod : MonoBehaviour
  5. {
  6. public int lodlevel = 300;
  7. public float alpha = 1.0f;
  8. // Start is called before the first frame update
  9. void Start()
  10. {
  11. }
  12. // Update is called once per frame
  13. void Update()
  14. {
  15. Shader.globalMaximumLOD = lodlevel;
  16. Shader.SetGlobalFloat("_GlobalSceneAlpha", alpha);
  17. }
  18. }