Hotfixed custom renderables and Hider
Man, flat render code is a huge mess
This commit is contained in:
parent
05b1c73fbc
commit
782b3ef553
@ -191,7 +191,8 @@ public class RenderTarget {
|
|||||||
assembleCurrentClipFromFaces();
|
assembleCurrentClipFromFaces();
|
||||||
|
|
||||||
float depth = this.depth--;
|
float depth = this.depth--;
|
||||||
Mat4 transform = new Mat4().translate(0, 0, depth).mul(getTransform());
|
final float kostyl = 1e-2f;
|
||||||
|
Mat4 transform = new Mat4().translate(0, 0, depth).scale(1, 1, kostyl).mul(getTransform());
|
||||||
assembled.add(new Clip(maskStack, transform, renderable));
|
assembled.add(new Clip(maskStack, transform, renderable));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,12 +39,21 @@ public class Hider extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void handleInput(Input input) {
|
public void dispatchInput(Input input) {
|
||||||
if (shouldHide.getAsBoolean()) {
|
if (shouldHide.getAsBoolean()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
super.handleInput(input);
|
super.dispatchInput(input);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public synchronized Component findFocused() {
|
||||||
|
if (shouldHide.getAsBoolean()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return super.findFocused();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user