Added Parallax Mapping code/resources

Added code samples and necessary texture resources for upcoming Parallax
Mapping tutorial
This commit is contained in:
Joey de Vries
2015-06-04 19:59:04 +02:00
parent 2a0a415c8f
commit c4c3221de9
12 changed files with 309 additions and 149 deletions

View File

@@ -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