1

There was a weird white line at the edge of my sphere UV when I import texture with mipmap

It disappear when I disable mipmap

What is this?

enter image description here

This is the texture I used

enter image description here

Thaina Yu
  • 1,372
  • 2
  • 16
  • 27

1 Answers1

0

The problem lies on the fact that I was generate per pixel UV in shader

https://forum.unity.com/threads/strange-line-artifact-when-doing-1-on-uv-coordinates.544118/

But that's not the problem itself. The point is I need to specified LOD with texture2D sampler LOD when it is a custom per pixel UV. Or else it could has a confusion mipmap between UV 0.99 and 0.01

Thaina Yu
  • 1,372
  • 2
  • 16
  • 27
  • To make this work with per-pixel UV coordinates, you have to provide custom uv derivatives (see the Tex2D overload that takes custom dx and dy derivatives https://developer.download.nvidia.com/cg/tex2D.html) – matthias_buehlmann Sep 28 '20 at 14:07