开发者

OpenGL per pixel lighting in fixed function pipeline

Is it possible to enable per-pixel lighting (so that I can have nice specular highlights on low te开发者_运维百科ssellated surfaces) in the OpenGL fixed function pipeline?


The only way to do this is using precomputed cubemaps. The fixed function pipeline interpolates colors and texture coordinates across polygons. Color is useless but the texturing can be used.

It won't be position-dependent, but you can precalculate cubemaps for areas and blend between them using BLEND_ADD and drawing it twice with both cubemaps you're LERPing between.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜