player added
This commit is contained in:
@@ -20,6 +20,7 @@ uniform int chunkY;
|
||||
|
||||
out vec2 fragUV;
|
||||
out float lighting;
|
||||
out vec3 fragPos;
|
||||
|
||||
const float lightMult[6] = float[6](0.6, 0.6, 1.0, 0.5, 0.8, 0.8);
|
||||
|
||||
@@ -111,5 +112,6 @@ void main()
|
||||
fragUV = uv;
|
||||
lighting = lightMult[facing];
|
||||
|
||||
fragPos = vec3(worldPos.x, worldPos.y, worldPos.z);
|
||||
gl_Position = projection * view * worldPos;
|
||||
}
|
||||
Reference in New Issue
Block a user