mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-14 06:24:12 +01:00
get it working again
This commit is contained in:
parent
02114b1d9a
commit
3820e11954
@ -20,7 +20,7 @@ public class RenderInLayerMixin {
|
||||
* layer-correct custom rendering. RenderWorldLast is not refined enough for rendering world objects.
|
||||
* This should probably be a forge event.
|
||||
*/
|
||||
@Inject(at = @At(value = "TAIL"), method = "renderLayer")
|
||||
@Inject(at = @At(value = "INVOKE", target = "Lnet/minecraft/profiler/IProfiler;endSection()V", ordinal = 1), method = "renderLayer")
|
||||
private void renderLayer(RenderType type, MatrixStack stack, double cameraX, double cameraY, double cameraZ, CallbackInfo ci) {
|
||||
FastRenderDispatcher.renderLayer(type, stack, (float) cameraX, (float) cameraY, (float) cameraZ);
|
||||
}
|
||||
|
@ -88,12 +88,12 @@ public abstract class BufferedModel extends TemplateBuffer {
|
||||
}
|
||||
|
||||
protected void setupAttributes() {
|
||||
getModelFormat().informAttributes(0);
|
||||
|
||||
int numAttributes = getTotalShaderAttributeCount();
|
||||
for (int i = 0; i <= numAttributes; i++) {
|
||||
GL20.glEnableVertexAttribArray(i);
|
||||
}
|
||||
getModelFormat().informAttributes(0);
|
||||
}
|
||||
|
||||
public void delete() {
|
||||
|
Loading…
Reference in New Issue
Block a user