How do I get smooth edges for a voxel game?
This is the image I'm trying to replicate in my game:
Notice how for the most part the edges are rendered nice and smooth.
This is what is happening in unity:
See how most of the edges have those really bad lines? What settings do I need to change to get the edges smoothed out?
How would I go about doing that? Changing the filter mode from point completely ruins it.
Answer by HellsPlumber · Jan 03, 2016 at 01:34 PM
You just need some anti-aliasing! You can enable this in "Edit > Project Settings > Quality" and enabling Anti-Aliasing from there.
There's also a script in Unity's Standard Assets to add Anti-Aliasing effects to a single camera at: "Assets/Standard Assets/Effects/ImageEffects/Scripts/Antialiasing.CS"
But the Quality Settings are probably the best way to go unless you're working with multiple cameras that need show different effects.
I should mention that it also looks like there's some Ambient Occlusion going on in your referance image. This too can be found in the "ImageEffects" folder as a script. Hope this is what you're after!
Your answer
Follow this Question
Related Questions
Material.SetTexture doesn't work if not "_MainTex" 0 Answers
How to make a 'Simple Texture 2D LOD' infinite using a Shader Graph ? 0 Answers
Shader change works, but no texture - Android 0 Answers
Textures looking bad on iOS build 0 Answers
Unity 2018.1.2f1 doesn't apply textures to material if I use HDRenderPipeline. 0 Answers