mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-02 04:37:54 +08:00
Added Parallax Mapping code/resources
Added code samples and necessary texture resources for upcoming Parallax Mapping tutorial
This commit is contained in:
@@ -157,6 +157,9 @@ private:
|
||||
// 3. Normal maps
|
||||
std::vector<Texture> normalMaps = this->loadMaterialTextures(material, aiTextureType_HEIGHT, "texture_normal");
|
||||
textures.insert(textures.end(), normalMaps.begin(), normalMaps.end());
|
||||
// 4. Height maps
|
||||
std::vector<Texture> heightMaps = this->loadMaterialTextures(material, aiTextureType_AMBIENT, "texture_height");
|
||||
textures.insert(textures.end(), heightMaps.begin(), heightMaps.end());
|
||||
}
|
||||
|
||||
// Return a mesh object created from the extracted mesh data
|
||||
|
||||
Reference in New Issue
Block a user