💦 CREATE AND FUCK YOUR OWN AI CUMSLUT 🔥 TRY NOW ♥
Create AI Cumsluts 💦
June 24, 2015

Rounded Cube

Here's a new tutorial! It follows up on Procedural Grid, going for a rounded cube. It includes sub-meshes, shaders, and colliders.

I made separate syntax highlighting for the shader code, so it looks a lot better. This is preparation for more custom shader material that is yet to come.

There are a few rough edges I'd still like to polish and some asides I'd like to add, but the tutorial should be good enough for release. Let me know about any mistakes, omissions, questions, and such!

I wanted to release this one earlier, but stuff happened. Sorry for that!

http://catlikecoding.com/unity/tutorials/rounded-cube/

http://catlikecoding.com/unity/tutorials/rounded-cube/tutorial-image.jpg (Catlikecoding)

Comments (4)

C
CatWood Games · July 18, 2017

I posted a link to this tutorial on stack overflow, the asker loved it. <a href="https://stackoverflow.com/questions/25078224/unity3d-round-the-edges-of-a-box-cube?noredirect=1" rel="nofollow noopener" target="_blank">https://stackoverflow.com/questions/25078224/unity3d-round-the-edges-of-a-box-cube?noredirect=1</a>#comment75255564_25078224

C
Catlike Coding · July 19, 2017

Always good when the love is spreading!

A
Ayle · March 22, 2016

Wow! It is really an excellent tutorial! It is working good for me. I have doubts in how to calculate the tangents for this mesh, like it is done for procedural grid

C
Catlike Coding · March 22, 2016

As the whole cube is continuous, there isn't really a valid way to put tangents in there. You could generate them in the shader, based on the normal and which side you're on.