Source

gltut / Tut 18 Bumpy Textures / Bumpy Square.cpp

Diff from to

Tut 18 Bumpy Textures/Bumpy Square.cpp

 		glBindBuffer(GL_UNIFORM_BUFFER, 0);
 	}
 
+	{
+		glm::mat4 temp(1.0f);
+		g_nodes[0].SetNodePreTransform(glm::rotate(temp, 20.0f, glm::vec3(0.0f, 1.0f, 0.0f)));
+	}
+
 	g_pScene->Render(modelMatrix.Top());
 
 	if(g_pObjPole && g_bDrawLightPos)
 		glUseProgram(g_unlitProg);
 		glUniformMatrix4fv(g_unlitModelToCameraMatrixUnif, 1, GL_FALSE,
 			glm::value_ptr(modelMatrix.Top()));
-		glUniform4f(g_unlitObjectColorUnif, 0.25f, 0.25f, 0.25f, 1.0f);
+		glUniform4f(g_unlitObjectColorUnif, 0.01f, 0.01f, 0.01f, 1.0f);
 		g_pSphereMesh->Render("flat");
 	}