diff --git a/src/main/kotlin/net/shadowfacts/phycon/client/model/ScreenDeviceModel.kt b/src/main/kotlin/net/shadowfacts/phycon/client/model/ScreenDeviceModel.kt index da84d2d..7b3b1e6 100644 --- a/src/main/kotlin/net/shadowfacts/phycon/client/model/ScreenDeviceModel.kt +++ b/src/main/kotlin/net/shadowfacts/phycon/client/model/ScreenDeviceModel.kt @@ -71,11 +71,48 @@ class ScreenDeviceModel( for (dir in Direction.values()) { if (dir == facing) { - emitter.square(facing, 0f, 0f, 1f, 1f, QuadEmitter.CULL_FACE_EPSILON * 10) + // screen border + emitter.square(facing, 0f, 0f, 3/16f, 3/16f, 0f) emitter.spriteBake(0, screenSprite, MutableQuadView.BAKE_LOCK_UV) emitter.spriteColor(0, -1, -1, -1, -1) emitter.emit() + emitter.square(facing, 13/16f, 0f, 1f, 3/16f, 0f) + emitter.spriteBake(0, screenSprite, MutableQuadView.BAKE_LOCK_UV) + emitter.spriteColor(0, -1, -1, -1, -1) + emitter.emit() + + emitter.square(facing, 13/16f, 13/16f, 1f, 1f, 0f) + emitter.spriteBake(0, screenSprite, MutableQuadView.BAKE_LOCK_UV) + emitter.spriteColor(0, -1, -1, -1, -1) + emitter.emit() + + emitter.square(facing, 0f, 13/16f, 3/16f, 1f, 0f) + emitter.spriteBake(0, screenSprite, MutableQuadView.BAKE_LOCK_UV) + emitter.spriteColor(0, -1, -1, -1, -1) + emitter.emit() + + emitter.square(facing, 3/16f, 0f, 13/16f, 2/16f, 0f) + emitter.spriteBake(0, screenSprite, MutableQuadView.BAKE_LOCK_UV) + emitter.spriteColor(0, -1, -1, -1, -1) + emitter.emit() + + emitter.square(facing, 3/16f, 14/16f, 13/16f, 1f, 0f) + emitter.spriteBake(0, screenSprite, MutableQuadView.BAKE_LOCK_UV) + emitter.spriteColor(0, -1, -1, -1, -1) + emitter.emit() + + emitter.square(facing, 0f, 3/16f, 2/16f, 13/16f, 0f) + emitter.spriteBake(0, screenSprite, MutableQuadView.BAKE_LOCK_UV) + emitter.spriteColor(0, -1, -1, -1, -1) + emitter.emit() + + emitter.square(facing, 14/16f, 3/16f, 1f, 13/16f, 0f) + emitter.spriteBake(0, screenSprite, MutableQuadView.BAKE_LOCK_UV) + emitter.spriteColor(0, -1, -1, -1, -1) + emitter.emit() + + // screen emitter.material(PhysicalConnectivityClient.screenMaterial) emitter.square(facing, 3/16f, 2/16f, 13/16f, 3/16f, 0f) emitter.spriteBake(0, screenSprite, MutableQuadView.BAKE_LOCK_UV)