Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Question Screen has glitter bug when sampling textures

Discussion in 'General Graphics' started by Middle-earth, Mar 30, 2023.

  1. Middle-earth

    Middle-earth

    Joined:
    Jan 23, 2018
    Posts:
    72
    I use a 128*128 texture,which setting is bilinear without mipmap.
    I use uv=floor(uv*_Tex_TexelSize.zw)/_Tex_TexelSize.zw+_Tex_TexelSize.xy*0.5 to make the uv can only in the center of each pixel,this formula should get the same result as point filter.Actually,the result of sampling shows in picture below,I don't know why there are lots of gillter bug.If set the texture filter to point,the bug would gone.How to solve this glitter bug?
    2023_03_30_18_44.53.jpg