Search Unity

tex2Dlod() not working when using Metal on iOS

Discussion in 'Shaders' started by VIC20, Mar 12, 2015.

  1. VIC20

    VIC20

    Joined:
    Jan 19, 2008
    Posts:
    2,688
    For me tex2Dlod() is not working when using Metal on iOS. (result is 0).
    Anyone else with that problem?
     
    MRKane likes this.
  2. VIC20

    VIC20

    Joined:
    Jan 19, 2008
    Posts:
    2,688
    Figured out that tex2lod still works with metal but it does not work with the mip maps of render textures.
     
  3. MRKane

    MRKane

    Joined:
    Oct 4, 2012
    Posts:
    54
    I've been having issues with tex2Dlod() on metal also - I was using a texture for reading a heightmap that I could pan over a surface, but unfortunately nothing I've done has stopped the surface from "tearing" as polygons seem to be getting different values for the same position.

    EDIT: Typically shortly after I post this I literally tripped over a fix for my problem: It seemed to be caused by the aniso level on the texture. Hopefully that might help you!
     
    Last edited: Jun 8, 2015
  4. Johannski

    Johannski

    Joined:
    Jan 25, 2014
    Posts:
    826