mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 09:19:18 +02:00
param parsing fix, use colored material alpha
This commit is contained in:
@@ -165,7 +165,7 @@ opengl_material::deserialize_mapping( cParser &Input, int const Priority, bool c
|
|||||||
|
|
||||||
if( ( true == key.empty() ) || ( key == "}" ) ) { return false; }
|
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 ) {
|
if( Priority != -1 ) {
|
||||||
// regular attribute processing mode
|
// regular attribute processing mode
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ uniform samplerCube envmap;
|
|||||||
|
|
||||||
void main()
|
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 normal = normalize(f_normal);
|
||||||
vec3 refvec = reflect(f_pos.xyz, normal);
|
vec3 refvec = reflect(f_pos.xyz, normal);
|
||||||
|
|||||||
Reference in New Issue
Block a user