jit.gl.slab sendinput wrap mirrored repeat with GL 3?


    Mar 23 2020 | 9:56 pm
    Long time since ive posted here 不
    Should I expect "sendinput wrap mirroredrepeat" to set texture clamp mode to mirrored repeat while running under GL 3 for texture units assigned and bound to a jit.gl.slab object? If so, it aint working?

    • Mar 24 2020 | 7:02 pm
      seems to work as expected in this patch. send along an example of what you're seeing.
    • Mar 25 2020 | 7:40 pm
      interesting. Youre using sampler2Ds, and Slab and my shaders default to sampler2DRects -
      Does wrap mode not work under rectangular textures?
      I can repro here:
    • Mar 25 2020 | 7:41 pm
      Aha:
      Turns out thats a no go and I totally forgot about that detail?
      "Rectangle textures contain exactly one image; they cannot have mipmaps. Therefore, any texture parameters that depend on LODs are irrelevant when used with rectangle textures; attempting to set these parameters to any value other than 0 will result in an error. Similarly, no mipmap filtering is allowed; GL_TEXTURE_MIN_FILTER must be GL_NEAREST or GL_LINEAR. Similarly, they cannot be used with any of the gradient or LOD texture accessing functions.
      Also, wrapping modes for each coordinate must be either GL_CLAMP_TO_EDGE or GL_CLAMP_TO_BORDER." Man miss Metal :D