mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
shader update
This commit is contained in:
parent
1bae1c1c7f
commit
6162bf5573
2 changed files with 2 additions and 2 deletions
|
|
@ -12,6 +12,6 @@ void main(){
|
|||
vec4 tex_color = texture(u_texture0, a_texCoord);
|
||||
//if (tex_color.a < 0.5)
|
||||
// discard;
|
||||
float depth = (a_distance/256.0)*(a_distance/256.0)*256.0;
|
||||
float depth = (a_distance/256.0)*(a_distance/256.0)*256.0/6;
|
||||
f_color = mix(a_color * tex_color, vec4(u_fogColor,1.0), min(1.0, depth/256.0/1.0f));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue