Saturday, September 3, 2016

Object/Model Space .. World Space .. Eye/Camera/View Space .. Clip Space ..NDC Space .. Projection Space

[ORIGINAl]

/Position in Object Space

Position  
Vertex 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