HW7

Hierachical transformation 3D geometry (eg. your name)를 3가지 방식으로 만들고 구현방식 차이점을 분석한다.

SimpleCube3d를 참고한다.

-geometryPositionColor (lab10-GeometryPositionColorOrientationCamera)

-geometryPositionNormal & Lighting & Material (lab11-GeometryPositionNormalMultipleLights3 )

-geometryPositionNormalTexture & Lighting & Material & TextureMapping (lab13-TextureShadedGeometry & moglclass17(updated))

//////////MPerPixelShadingTexture.vs

// Input vertex data, different for all executions of this shader.
layout(location = 0) in vec3 vPosition; // vertex position (in model space)
layout(location = 1) in vec2 vTexCoord; // texture coordinate (in model space)
layout(location = 2) in vec3 vNormal; // vertex normal (in model space)