vec3 spec = LightColor * pow( max( dot( R, E), 0. ), Shininess ); ... You can do this in stock OpenGL or in a shader. N = Normal.
確定! 回上一頁