Breaking shows preview (breaking only in creative).
Build mode cancels when opposite mouse button is pressed (left button when placing, right button when breaking). Simple shader when placing more than 1500 blocks (or when useShaders is false). Added axis limits in addition to total block limit. Fixed placing on self (and being pushed). Fixed issue #15 silk touch, shearing leaves, dropping bed etc by using Block#harvestBlock (items dont drop directly to inventory anymore). Fixed randomizerbag not randomizing in buildmodes.
This commit is contained in:
@@ -4,6 +4,7 @@ uniform int time; // Passed in, see ShaderHelper.java
|
||||
|
||||
uniform float dissolve; // Passed in via Callback
|
||||
uniform int highlight;
|
||||
uniform int red;
|
||||
uniform vec3 blockpos;
|
||||
uniform vec3 firstpos;
|
||||
uniform vec3 secondpos;
|
||||
@@ -87,10 +88,12 @@ void main() {
|
||||
color.rgb -= 0.05;
|
||||
|
||||
|
||||
if(highlight == 1 && dissolve == 0.0) {
|
||||
color.r += 0.0;
|
||||
color.g += 0.1;
|
||||
color.b -= 0.2;
|
||||
if (highlight == 1 && dissolve == 0.0) {
|
||||
color.rgb += vec3(0.0, 0.1, -0.2);
|
||||
}
|
||||
|
||||
if (red == 1) {
|
||||
color.rgb += vec3(0.4, -0.3, -0.5);
|
||||
}
|
||||
|
||||
color.r = max(0, min(1, color.r));
|
||||
|
||||
@@ -1,14 +1,5 @@
|
||||
#version 120
|
||||
|
||||
uniform int time; // Passed in, see ShaderHelper.java
|
||||
|
||||
uniform float dissolve; // Passed in via Callback
|
||||
uniform int highlight;
|
||||
uniform vec3 blockpos;
|
||||
uniform vec3 firstpos;
|
||||
uniform vec3 secondpos;
|
||||
uniform sampler2D mask;
|
||||
|
||||
varying vec4 position;
|
||||
varying vec3 normal;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user