阅读新闻

一些有用的状态变量

[日期:2007-06-24] 来源:www.azure.com.cn   作者: [字体: ]
         
Available state variables

Binding Underlying State
--------------------------------- ---------------------------
state.matrix.modelview[n] modelview matrix n
state.matrix.projection projection matrix
state.matrix.mvp modelview-projection matrix
state.matrix.texture[n] texture matrix n

state.material.ambient (r,g,b,a) front ambient material color
state.material.diffuse (r,g,b,a) front diffuse material color
state.material.specular (r,g,b,a) front specular material color
state.material.emission (r,g,b,a) front emissive material color
state.material.shininess (s,0,0,1) front material shininess

state.light[n].ambient (r,g,b,a) light n ambient color
state.light[n].diffuse (r,g,b,a) light n diffuse color
state.light[n].specular (r,g,b,a) light n specular color
state.light[n].position (x,y,z,w) light n position

CGSetStateMatrixParameter ("modelViewProj", CG_GL_MODELVIEW_PROJECTION_MATRIX);
chess_scene_reflection->setStateMatrixParameter ("modelToWorld", CG_GL_MODELVIEW_MATRIX, CG_GL_MATRIX_IDENTITY);

...


阅读:
录入:admin

评论 】 【 推荐 】 【 打印
上一篇:Ogre 一句话技巧
下一篇:介绍顶点着色器和像素着色器
相关新闻      
本文评论       全部评论
发表评论
字数
姓名:

  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款