目的:研究不同方向光源对数码色度值的影响。
Objective: To study the effect of light from different direction on digital chromatic value.
函数的源代码如下。注意如果光源是方向光,向量的前三个部分将被归一化,来节省时间。
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 first three values specify the lights position, in the case of a point light, or the lights direction for directional lights.
应用推荐