add entity shader

This commit is contained in:
MihailRis
2024-07-20 17:13:03 +03:00
parent 8e159009eb
commit 4197746c69
8 changed files with 83 additions and 16 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ uniform vec3 u_fogColor;
uniform float u_fogFactor;
uniform float u_fogCurve;
void main(){
void main() {
vec3 fogColor = texture(u_cubemap, a_dir).rgb;
vec4 tex_color = texture(u_texture0, a_texCoord);
float depth = (a_distance/256.0);