UnityShader数学基础篇

Mathf Mathf和Math 1、Math是C#中封装好的用于数学计算的工具类,位于System命名空间中。 2、Mathf是Unity中封装好的用于数学计算的工具结构体,位于UnityEngine命名空间中。 Mathf中的常用方法 1.π - PI print(Mathf.PI); 2.取绝
posted @ 2024-05-15 21:56  FengLing_风铃  阅读(183)  评论(0编辑  收藏  举报