adrian.licuriceanu Posted August 17, 2020 Share Posted August 17, 2020 Hi, Shouldn't vec4 ObjectMeshStatic::getColor(int num, int surface) const { return vec4(mesh_ptr->getColors(surface)[num]) * 255.0f; } actually be: vec4 ObjectMeshStatic::getColor(int num, int surface) const { return vec4(mesh_ptr->getColors(surface)[num]) * (1.f/255.0f); } since mesh_ptr->getColors returns in 0..255 range and you want to output in 0..1 and not the other way around? Kind Regards, Adrian L. Link to comment
silent Posted August 18, 2020 Share Posted August 18, 2020 Hi Adrian, Will check this prior 2.13 update. Looks strange, indeed. Thank you for sharing! UPD: Fixed in 2.13. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts