Now generating Mipmaps for textures.
This commit is contained in:
parent
5398edf8e6
commit
5120c896a5
@ -3,6 +3,7 @@
|
|||||||
Material::Material(std::string filePath, float ambientFactor, float diffuseFactor,
|
Material::Material(std::string filePath, float ambientFactor, float diffuseFactor,
|
||||||
float specularFactor, float shininess) {
|
float specularFactor, float shininess) {
|
||||||
reference = ACGL::OpenGL::Texture2DFileManager::the()->get(ACGL::OpenGL::Texture2DCreator(filePath));
|
reference = ACGL::OpenGL::Texture2DFileManager::the()->get(ACGL::OpenGL::Texture2DCreator(filePath));
|
||||||
|
reference->generateMipmaps();
|
||||||
this->ambientFactor = ambientFactor;
|
this->ambientFactor = ambientFactor;
|
||||||
this->diffuseFactor = diffuseFactor;
|
this->diffuseFactor = diffuseFactor;
|
||||||
this->specularFactor = specularFactor;
|
this->specularFactor = specularFactor;
|
||||||
|
Loading…
Reference in New Issue
Block a user