光照模型
Cspecular=(Clight∗mspecular∗pow(max(0,v∗r),mgloss))
Cspecular=(Clight∗mspecular∗pow(max(0,n∗h),mgloss))
上面两个模型中都使用了一个pow函数,这个函数我们将用来表示光线在顶点处的变化放大,通过 mgloss 来调节高光的范围
Cspecular=(Clight∗mspecular∗pow(max(0,v∗r),mgloss))
Cspecular=(Clight∗mspecular∗pow(max(0,n∗h),mgloss))
上面两个模型中都使用了一个pow函数,这个函数我们将用来表示光线在顶点处的变化放大,通过 mgloss 来调节高光的范围