mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-30 20:13:22 +08:00
Changed some incorrect comments regarding where the metallic/roughness values come from
This commit is contained in:
@@ -234,7 +234,7 @@ int main()
|
||||
pbrShader.setMat4("view", view);
|
||||
pbrShader.setVec3("camPos", camera.Position);
|
||||
|
||||
// render rows*column number of spheres with material properties defined by textures (they all have the same material properties)
|
||||
// render rows*column number of spheres with varying metallic/roughness values scaled by rows and columns respectively
|
||||
glm::mat4 model = glm::mat4(1.0f);
|
||||
for (int row = 0; row < nrRows; ++row)
|
||||
{
|
||||
|
||||
@@ -279,7 +279,7 @@ int main()
|
||||
glActiveTexture(GL_TEXTURE0);
|
||||
glBindTexture(GL_TEXTURE_CUBE_MAP, irradianceMap);
|
||||
|
||||
// render rows*column number of spheres with material properties defined by textures (they all have the same material properties)
|
||||
// render rows*column number of spheres with varying metallic/roughness values scaled by rows and columns respectively
|
||||
glm::mat4 model = glm::mat4(1.0f);
|
||||
for (int row = 0; row < nrRows; ++row)
|
||||
{
|
||||
|
||||
@@ -371,7 +371,7 @@ int main()
|
||||
glActiveTexture(GL_TEXTURE2);
|
||||
glBindTexture(GL_TEXTURE_2D, brdfLUTTexture);
|
||||
|
||||
// render rows*column number of spheres with material properties defined by textures (they all have the same material properties)
|
||||
// render rows*column number of spheres with varying metallic/roughness values scaled by rows and columns respectively
|
||||
glm::mat4 model = glm::mat4(1.0f);
|
||||
for (int row = 0; row < nrRows; ++row)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user