param parsing fix, use colored material alpha

This commit is contained in:
milek7
2018-07-30 14:05:43 +02:00
parent 88f8bf6845
commit f6f7fee8d8
2 changed files with 2 additions and 2 deletions

View File

@@ -165,7 +165,7 @@ opengl_material::deserialize_mapping( cParser &Input, int const Priority, bool c
if( ( true == key.empty() ) || ( key == "}" ) ) { return false; }
auto value { Input.getToken<std::string>( true, "\n\r\t ,;" ) };
auto value { Input.getToken<std::string>( true, "\n\r\t,;" ) };
if( Priority != -1 ) {
// regular attribute processing mode

View File

@@ -27,7 +27,7 @@ uniform samplerCube envmap;
void main()
{
vec4 tex_color = vec4(pow(param[0].rgb, vec3(2.2)), 1.0f);
vec4 tex_color = vec4(pow(param[0].rgb, vec3(2.2)), param[0].a);
vec3 normal = normalize(f_normal);
vec3 refvec = reflect(f_pos.xyz, normal);