1) Color Material
OpenGLES
1.1只支持使用glEnable/glDisable开启关闭,如果开启,必然是diffuse & ambient同时trace,
而OpenGL2.1可以使用glColorMaterial(GLenum face, GLenum mode)指定正反面的color
material模式,即使用ambient, diffuse, specular,emission,还是ambient &
diffuse trace.
2) Blend 删减比较多
2-1 Blend Op:
OpenGL2.1支持设置blend operation,如add, subtract, reverse subtract, min, max,而OpenGLES1.1不支持设置,只能使用add
2-2 Blend Factor的设定:
OpenGL2.1可以分别设定RGB和Alpha的Factor,而ES1.1不支持,2.1还支持分别设置RGB和alpha的Op,ES1.1当然更不支持了
2-3 Blend Factor:
ES1.1不支持 GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, GL_ONE_MINUS_CONSTANT_ALPHA
(待续)
OpenGLES 1.1 相对于OpenGL2.1的删减-材质部分
最新推荐文章于 2022-01-02 21:15:59 发布
本文对比了OpenGLES1.1与OpenGL2.1在ColorMaterial功能及Blend特性上的区别。OpenGLES1.1仅支持glEnable/glDisable开启关闭,并且开启时必须同时trace diffuse和ambient;而OpenGL2.1则提供了更多灵活性,可通过glColorMaterial指定不同的color material模式。此外,在Blend特性上,OpenGLES1.1相比OpenGL2.1删减较多,不支持多种BlendOp及BlendFactor设定。
2061

被折叠的 条评论
为什么被折叠?



