mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Hacky normals
This commit is contained in:
parent
c3f30b2188
commit
39e8b5d468
@ -39,7 +39,8 @@ void main() {
|
||||
float pull_down = 1.0 / pow(distance(focus_pos.xy, tree_pos.xy) / (view_distance.x * 0.95), 150.0);
|
||||
f_pos.z -= pull_down;
|
||||
|
||||
f_norm = v_norm;
|
||||
// Hacky, very bad, 50 is ~ tree height
|
||||
f_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) {
|
||||
|
Loading…
Reference in New Issue
Block a user