半肾
精华
|
战斗力 鹅
|
回帖 0
注册时间 2009-7-16
|
引用第30楼tsubasa9于2011-11-14 12:40发表的 :
扯淡吧,不然还要个毛的专业显卡来支持双面光照  http://www.khronos.org/opengles/ ... l/glLightModel.html
GL_LIGHT_MODEL_TWO_SIDE
params is a single fixed-point or floating-point value that specifies whether one- or two-sided lighting calculations are done for polygons. It has no effect on the lighting calculations for points, lines, or bitmaps. If params is 0, one-sided lighting is specified, and only the front material parameters are used in the lighting equation. Otherwise, two-sided lighting is specified. In this case, vertices of back-facing polygons are lighted using the back material parameters, and have their normals reversed before the lighting equation is evaluated. Vertices of front-facing polygons are always lighted using the front material parameters, with no change to their normals. The initial value is 0. |
|