Fixed dissolve shader sometimes applying to wrong blocks (server and client are synced now, no more message to render).

Fixed build modes on server clicking twice.
Changing config ingame is now possible.
This commit is contained in:
Christian Knaapen
2019-02-12 16:06:54 +01:00
parent a5e5e7240a
commit e1c23a5bec
12 changed files with 68 additions and 41 deletions

View File

@@ -15,7 +15,8 @@ varying vec3 normal;
void main() {
vec3 worldpos = blockpos + position.xyz;
vec3 pixelposition = floor(position.xyz * 8.0) / 8.0;
vec3 worldpos = blockpos + pixelposition.xyz;
vec2 texcoord = vec2(gl_TexCoord[0]);
vec4 texcolor = texture2D(image, texcoord);
vec4 color = texcolor;

View File

@@ -16,7 +16,7 @@ void main() {
gl_Position = ftransform();//gl_ProjectionMatrix * gl_ModelViewMatrix * gl_Vertex;
gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
gl_FrontColor = gl_Color;
gl_BackColor = gl_Color;
//gl_BackColor = gl_Color;
position = gl_Vertex;
normal = gl_Normal;