mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 03:09:18 +02:00
Sim (#11)
* Wheels animation distance changed to 200*D*LODbias * Fixed spelling error in event syntax; old one remains for compatibility. * Spelling error left in log text * Zamiana metalic na floata z wazonym efektem. # Conflicts: # shaders/light_common.glsl * Detail normalmap shaders @Jan21 * Explicit type conversion * Leftover metalic as bool * Syntax error * Normalmap sampling inside ParallaxMapping function
This commit is contained in:
@@ -53,7 +53,7 @@ void main()
|
||||
float reflectivity = param[1].z * texture(normalmap, f_coord).a;
|
||||
float specularity = texture(specgloss, f_coord).r;
|
||||
glossiness = texture(specgloss, f_coord).g * abs(param[1].w);
|
||||
metalic = (texture(specgloss, f_coord).b > 0.5) ? true : false;
|
||||
float metalic = texture(specgloss, f_coord).b;
|
||||
|
||||
fragcolor = apply_lights(fragcolor, fragnormal, tex_color.rgb, reflectivity, specularity, 1.0);
|
||||
vec4 color = vec4(apply_fog(fragcolor), tex_color.a * alpha_mult);
|
||||
|
||||
Reference in New Issue
Block a user