|
|
@ -12,13 +12,15 @@ FullScreenQuad *fsq; |
|
|
|
|
|
|
|
void Init() |
|
|
|
{ |
|
|
|
model.Init("Res/Cube.obj"); |
|
|
|
model.mShader->Init("Res/rgbcube.vs", "Res/rgbcube.fs"); |
|
|
|
model.Init("Res/Sphere.obj"); |
|
|
|
model.mShader->Init("Res/ambient_vs.vs", "Res/ambient_vs.fs"); |
|
|
|
model.SetPosition(0.0f, 0.0f, 0.0f); |
|
|
|
model.SetAmbientMaterial(0.1f, 0.1f, 0.1f, 1.0f); |
|
|
|
model.mShader->SetVec4("U_AmbientLight", 0.1f, 0.1f, 0.1f, 1.0f); |
|
|
|
viewMatrix = glm::lookAt(cameraPos, glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3(0.0f, 1.0f, 0.0f)); |
|
|
|
fsq = new FullScreenQuad(); |
|
|
|
fsq->Init(); |
|
|
|
fsq->mShader->Init("Res/fullscreenquad.vs", "Res/gray.fs"); |
|
|
|
fsq->mShader->Init("Res/fullscreenquad.vs", "Res/fullscreenquad.fs"); |
|
|
|
} |
|
|
|
|
|
|
|
void SetViewPortSize(float width, float height) |
|
|
|