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

Specular/glossines/metalic mapping added to all fragment shaders

This commit is contained in:
stele
2020-02-23 10:36:15 +01:00
parent fcc8460d88
commit 879f3bb360
15 changed files with 643 additions and 6 deletions

View File

@@ -15,6 +15,7 @@ void main()
float dist2 = abs(x * x + y * y);
if (dist2 > 0.5f * 0.5f)
discard;
// color data space is shared with normals, ugh
vec4 color = vec4(pow(f_normal_raw.rgb, vec3(2.2)), 1.0f);
#if POSTFX_ENABLED