Starchasers / OCGlasses

mod for minecraft and addon for Open Computers
zlib License
30 stars 17 forks source link

[Bug] setVisibleThroughObjects does not work with addColor #100

Open hohserg1 opened 3 years ago

hohserg1 commented 3 years ago

Describe the bug Using addColor neutralizes effect of setVisibleThroughObjects(true)

In which environment did the Bug appear? Singleplayer

To Reproduce Steps to reproduce the behavior:

  1. Open lua repl
  2. execute c=component.glasses.addcube3D()
  3. execute `c.setVisibleThroughObjects(true)
  4. See cube through blocks
  5. execute c.addColor(1,0,0,0.5) --red, half transparent
  6. Do not see cube through blocks

Expected behavior Cube must visible through blocks independent on color

Screenshots / Code Snippet After step 3: image After step 5: image

Minecraft:

hohserg1 commented 3 years ago

I tested it better: it bug work with any widgets and work only if alpha modifier less that 1

ben-mkiv commented 3 years ago

duplicate of https://github.com/Starchasers/OCGlasses/issues/91