Problem With "AntiAliasing" in Texture

Hi!

i am starting with Unity and i get this wird (i think) error:

I have made this texture:


1024x1024

But in the game look not very well:

I have made a small script and i have set it to the main camera to set the AntiAliasing in 8, and works, but only in 3d objects.

using UnityEngine;
using System.Collections;

public class AntiAliasing : MonoBehaviour
{
    public int AntiAliasingValue =  0;
    void Start()
    {
        QualitySettings.antiAliasing = AntiAliasingValue;
    }
}

Whats im doing wrong?
Thans a lot!

You want Trilinear filtering on your texture import.

1 Like

blur the texture to have it sharper (I know)
https://gamedev.stackexchange.com/questions/92391/how-to-render-grid-properly-especially-over-distance
My answer on stack

The quality settings anti-aliasing has no effect on texture aliasing. That setting enables MSAA, which only works to anti-alias geometry edges. That looks like you turned off mip-maps or texture filtering on your texture in the texture importer settings (what you see when you select the texture asset in the editor).

You should be using mip-maps, and set the “Aniso level” to some value greater than 1. You can just slide that value to the right until it looks good.

1 Like