mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 18:19:19 +02:00
configure lightning when no vehicles
This commit is contained in:
@@ -32,7 +32,7 @@ void main()
|
||||
if (tex_color.a < opacity)
|
||||
discard;
|
||||
|
||||
vec3 normal = normalize(f_normal);
|
||||
vec3 normal = f_tbn * normalize(texture(normalmap, f_coord).rgb * 2.0 - 1.0);
|
||||
vec3 refvec = reflect(f_pos, normal);
|
||||
vec3 envcolor = texture(envmap, refvec).rgb;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user