/Position in Object Space
PositionVertex Attribute Position
[Transformed]
/World Space
(ModelMatrix * Position)[Transformed]
/Eye/Camera/View Space
(ViewMatrix * ModelMatrix * Position)[Transformed]
/Clip Space
(ProjectionMatrix * ViewMatrix * ModelMatrix * Position)_______________________________________________________
Eye/Camera/View Space
(ViewMatrix * ModelMatrix * VertexPosition)
vec3 VertexPosition_CameraSpace;
vec3 EyeDirection_CameraSpace;
vec3 LightPosition_CameraSpace;
vec3 Normal_CameraSpace;
_______________________________________________________
No comments:
Post a Comment