The source code is presented next. Note that if the light is a directional light, the vector with the first three components is normalised to save time latter.
函数的源代码如下。注意如果光源是方向光,向量的前三个部分将被归一化,来节省时间。
The source code is presented next. Note that if the light is a directional light, the vector with the first three components is normalised to save time latter.
函数的源代码如下。注意如果光源是方向光,向量的前三个部分将被归一化,来节省时间。
应用推荐