mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 22:14:05 +09:00
wire sim refactor
This commit is contained in:
@@ -97,7 +97,8 @@ class WireActor : ActorWithBody, NoSerialise, InternalActor {
|
||||
|
||||
// signal wires?
|
||||
if (WireCodex.wireProps[wireID]?.accepts == "digital_bit") {
|
||||
val strength = world?.getWireEmitStateOf(worldX, worldY, wireID)?.x ?: 0.0
|
||||
// Use parametric brightness from logical wire graph for efficiency
|
||||
val strength = world?.getWireBrightness(worldX, worldY, wireID) ?: 0.0
|
||||
|
||||
// draw base (unlit) sprite
|
||||
batch.color = Color.WHITE
|
||||
|
||||
Reference in New Issue
Block a user