mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02:00
+ | Poorly done emissive texture
This commit is contained in:
@ -217,6 +217,7 @@ void Scene::addMaterial(Material *material)
|
||||
gpu_mat.refraction = material->refraction;
|
||||
gpu_mat.type = material->type;
|
||||
gpu_mat.texture_index = material->texture_index;
|
||||
gpu_mat.emission_texture_index = material->emission_texture_index;
|
||||
|
||||
_gpu_materials.push_back(gpu_mat);
|
||||
}
|
||||
@ -225,6 +226,11 @@ void Scene::addTexture(std::string path)
|
||||
_textures.push_back(path);
|
||||
}
|
||||
|
||||
void Scene::addEmissionTexture(std::string path)
|
||||
{
|
||||
_emission_textures.push_back(path);
|
||||
}
|
||||
|
||||
bool Scene::loadTextures()
|
||||
{
|
||||
for (std::string &path : _textures)
|
||||
@ -301,11 +307,21 @@ std::vector<GLuint> &Scene::getTextureIDs()
|
||||
return (_gpu_textures);
|
||||
}
|
||||
|
||||
std::vector<GLuint> &Scene::getEmissionTextureIDs()
|
||||
{
|
||||
return (_gpu_emission_textures);
|
||||
}
|
||||
|
||||
std::vector<std::string> &Scene::getTextures()
|
||||
{
|
||||
return (_textures);
|
||||
}
|
||||
|
||||
std::vector<std::string> &Scene::getEmissionTextures()
|
||||
{
|
||||
return (_emission_textures);
|
||||
}
|
||||
|
||||
GPUVolume &Scene::getVolume()
|
||||
{
|
||||
return (_gpu_volume);
|
||||
|
Reference in New Issue
Block a user