Unbork normals

This commit is contained in:
Joshua Barretto 2022-05-09 16:46:18 +01:00
parent 2d7aa1aaa3
commit 63c8ea58b9

View File

@ -44,7 +44,7 @@ void main() {
#endif
// Hacky, very bad, 50 is ~ tree height
f_norm = mix(v_norm, vec3(0, 0, 1), clamp(model_pos.z / 50, 0, 1));
f_norm = v_norm;//mix(v_norm, vec3(0, 0, 1), clamp(model_pos.z / 50, 0, 1));
f_col = vec4(vec3(0.02, 0.1, 0.01) * (sin(inst_pos.xyy) * 0.33 + 0.66), 1.0);//vec4(v_col, 1.0);
if ((inst_flags & FLAG_SNOW_COVERED) > 0u) {