mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-03 23:33:23 +08:00
fix comments in mesh.h
stream->string
This commit is contained in:
@@ -73,11 +73,11 @@ public:
|
|||||||
if(name == "texture_diffuse")
|
if(name == "texture_diffuse")
|
||||||
number = std::to_string(diffuseNr++);
|
number = std::to_string(diffuseNr++);
|
||||||
else if(name == "texture_specular")
|
else if(name == "texture_specular")
|
||||||
number = std::to_string(specularNr++); // transfer unsigned int to stream
|
number = std::to_string(specularNr++); // transfer unsigned int to string
|
||||||
else if(name == "texture_normal")
|
else if(name == "texture_normal")
|
||||||
number = std::to_string(normalNr++); // transfer unsigned int to stream
|
number = std::to_string(normalNr++); // transfer unsigned int to string
|
||||||
else if(name == "texture_height")
|
else if(name == "texture_height")
|
||||||
number = std::to_string(heightNr++); // transfer unsigned int to stream
|
number = std::to_string(heightNr++); // transfer unsigned int to string
|
||||||
|
|
||||||
// now set the sampler to the correct texture unit
|
// now set the sampler to the correct texture unit
|
||||||
glUniform1i(glGetUniformLocation(shader.ID, (name + number).c_str()), i);
|
glUniform1i(glGetUniformLocation(shader.ID, (name + number).c_str()), i);
|
||||||
|
|||||||
Reference in New Issue
Block a user