mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-13 01:10:19 -04:00
All the vals! Also removed minor oddity.
This commit is contained in:
parent
f69250b565
commit
596ba6f2c1
@ -217,10 +217,10 @@ object RobotRenderer extends TileEntitySpecialRenderer {
|
||||
// Additive blending for the light.
|
||||
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE)
|
||||
// Light color.
|
||||
var lightColor = if (robot != null && robot.info != null) robot.info.lightColor else 0xF23030
|
||||
var r = ((lightColor >>> 16) & 0xFF).toByte
|
||||
var g = ((lightColor >>> 8) & 0xFF).toByte
|
||||
var b = ((lightColor >>> 0) & 0xFF).toByte
|
||||
val lightColor = if (robot != null && robot.info != null) robot.info.lightColor else 0xF23030
|
||||
val r = ((lightColor >>> 16) & 0xFF).toByte
|
||||
val g = ((lightColor >>> 8) & 0xFF).toByte
|
||||
val b = ((lightColor >>> 0) & 0xFF).toByte
|
||||
GL11.glColor3ub(r, g, b)
|
||||
|
||||
val t = Tessellator.instance
|
||||
@ -280,7 +280,7 @@ object RobotRenderer extends TileEntitySpecialRenderer {
|
||||
|
||||
val timeJitter = robot.hashCode ^ 0xFF
|
||||
val hover =
|
||||
if (robot.isRunning) (Math.sin(timeJitter + (worldTime + f) / 20.0) * 0.03).toFloat
|
||||
if (robot.isRunning) (Math.sin(timeJitter + worldTime / 20.0) * 0.03).toFloat
|
||||
else -0.03f
|
||||
GL11.glTranslatef(0, hover, 0)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user