16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 19:09:20 +02:00

build 191224. opengl 3.3 renderer material glossiness support, minor bug fixes

This commit is contained in:
tmj-fstate
2019-12-25 19:42:50 +01:00
parent db49440653
commit 943e05462d
11 changed files with 48 additions and 16 deletions

View File

@@ -267,6 +267,13 @@ opengl_material::deserialize_mapping( cParser &Input, int const Priority, bool c
selfillum = std::stof(value); //m7t: handle exception
m_selfillum_priority = Priority;
}
else if (key == "glossiness:" &&
Priority > m_glossiness_priority)
{
std::string value = deserialize_random_set( Input );
glossiness = std::stof(value); //m7t: handle exception
m_glossiness_priority = Priority;
}
else if( key == "size:" ) {
Input.getTokens( 2 );
Input