-
cgfx 안에서 쓸 수 있는 state3D Graphics/Shader 2007. 4. 16. 02:33728x90
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 nstate.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 shininessstate.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
state.matrix.modelview.inverse : 역행렬
state.matrix.modelview.invtrans : 역행렬 트랜스포즈까지'3D Graphics > Shader' 카테고리의 다른 글
Vertext Sader 1.1 예제 (0) 2007.10.12 GLSL 강좌(1) (1) 2007.06.23 nVidia GPU List (0) 2007.04.16 Visual Studio에서 GLSL로 작성된 쉐이더를 Syntax Hightlight 시켜서 보기 (0) 2007.04.16 Visual Studio에서 Cg의 Syntax Highlight 기능 사용하기 (0) 2007.04.16