Hotfixed custom renderables and Hider
Man, flat render code is a huge mess
This commit is contained in:
		| @@ -191,7 +191,8 @@ public class RenderTarget { | ||||
| 		assembleCurrentClipFromFaces(); | ||||
| 		 | ||||
| 		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)); | ||||
| 	} | ||||
|  | ||||
|   | ||||
| @@ -39,12 +39,21 @@ public class Hider extends Component { | ||||
| 	} | ||||
| 	 | ||||
| 	@Override | ||||
| 	protected void handleInput(Input input) { | ||||
| 	public void dispatchInput(Input input) { | ||||
| 		if (shouldHide.getAsBoolean()) { | ||||
| 			return; | ||||
| 		} | ||||
| 		 | ||||
| 		super.handleInput(input); | ||||
| 		super.dispatchInput(input); | ||||
| 	} | ||||
| 	 | ||||
| 	@Override | ||||
| 	public synchronized Component findFocused() { | ||||
| 		if (shouldHide.getAsBoolean()) { | ||||
| 			return null; | ||||
| 		} | ||||
| 		 | ||||
| 		return super.findFocused(); | ||||
| 	} | ||||
| 	 | ||||
| 	@Override | ||||
|   | ||||
		Reference in New Issue
	
	Block a user