Non-repeat wrap mode used

Message

Non-repeat wrap mode used on a texture with non power-of-two dimensions, may cause it to be rendered incorrectly.

Explanation

Luna targets WebGL 1 API, which is roughly equivalent to OpenGL ES 2.0. This family of graphics API doesn't support the sampling textures with addressing modes other than Repeat, if the texure's dimensions are not power-of-two.

Severity

Medium / High

Steps to fix

There are two options of how this warning can be eliminiated:

  • Use Unity's "Non Power of 2" option to automatically resize the texture to become a PoT texture (Luna does respect this setting as well). This option can be found in texture's import settings: image

  • Resize the original file in any graphics editor (Photoshop, Sketch etc) to make sure both width and height are power of two (2, 4, 8, 16 ...)