Threejs Texture

When I execute my render of some geometry I can see in my console this warning:

THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.

I can’t understand the reason and the background of my canvas is completely black.

The size of your texture is not powers of two (ie. 16×16, 32×32, 64×64 …).

Set yourTexture.minFilter = THREE.LinearFilter to get rid of the error message.


The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .
Read More:   How do I query referenced objects in MongoDB?

Similar Posts