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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user