- Home /
See colors when inside Cube - Worldbuilding in a gameobject
When i walk into a gameobject, for example a red cube, i want to see red. Right now, when i am inside the cube i can just see through it, maybe see some borders.
How can i see all red when i am insinde the cube, which is also red from the outside?
Bonus: Is it possible to see am smaller blue cube when i am inside of the big red cube? Building a world within the red cube?!
Please help! Rian Itsch
Answer by Tulsisvt · Aug 07, 2019 at 03:45 PM
You can do that either by using a double-sided shader (Front and back face culling off) or flipping the normals of the object if you just want to render the inside of the cube.
http://wiki.unity3d.com/index.php/ReverseNormals - attach this script to the object you want the normals flipped.
I use shaderforge or shadergraph to make double-sided shaders, you can also edit an existing shader by adding a line Cull Off - https://stackoverflow.com/questions/42253311/unity-how-to-make-material-double-sided