Merge pull request #103 from d3BugErr/master

Tutorial PBR 1.1 sphere grid construction fix
This commit is contained in:
Joey de Vries
2018-04-10 12:56:43 +02:00
committed by GitHub

View File

@@ -146,8 +146,8 @@ int main()
model = glm::mat4(); model = glm::mat4();
model = glm::translate(model, glm::vec3( model = glm::translate(model, glm::vec3(
(float)(col - (nrColumns / 2)) * spacing, (col - (nrColumns / 2.)) * spacing,
(float)(row - (nrRows / 2)) * spacing, (row - (nrRows / 2.)) * spacing,
0.0f 0.0f
)); ));
shader.setMat4("model", model); shader.setMat4("model", model);