2 ms·
Really neat. Would it be possible to make the letters go gray when they go "behind the cube" from POV of the camera?
by netsharc 4y ago
Really neat. Would it be possible to make the letters go gray when they go "behind the cube" from POV of the camera?
- kilovoltaire 4y agoOh yeah that would look cool… Possibly transparent faces of the cube with a particular `mix-blend-mode` that leaves the background color alone but dims letters that get behind it? (That's just a wild guess, I don't know if it's actually possible.)
- fwlr 4y agoFaces of the cube with the same color as the background and opacity 0.2 would almost certainly work. My next thought is duplicate the original cube, remove the characters from the duplicate cube and set the color on the duplicate only, then move the duplicate cube back one pixel in the z direction.
- kilovoltaire 4y agoAh yeah faces with same color as background and low opacity sounds like a good approach. Here's an editable copy of the code if anyone sees this and wants to try adding the faces - https://jsfiddle.net/t0crk5do/ https://jsfiddle.net/t0crk5do/