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

Added water shader

This commit is contained in:
stele
2018-12-22 17:34:03 +01:00
parent 89231426e3
commit b7d6d80225
2 changed files with 117 additions and 0 deletions

View File

@@ -39,6 +39,8 @@ vec2 calc_light(vec3 light_dir)
{
#ifdef NORMALMAP
vec3 normal = normalize(f_tbn * normalize(texture(normalmap, f_coord).rgb * 2.0 - 1.0));
#elif defined(WATER)
vec3 normal = normal_d;
#else
vec3 normal = normalize(f_normal);
#endif