Texture sizes

Re: Texture sizes

von Patrick Adelberger -
Anzahl Antworten: 0
Hi,

In WebGL there are restrictions for textures that are not a power of 2 in both dimensions, e.g. no mip mapping and not all wrap modes are available.
The easiest way to circumvent these restirctions is to use textures with sizes of power of 2 (128x128, 256x256, 1024x1024, ...).

Here are some resources where you can look up these restrictions:
- https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Tutorial/Using_textures_in_WebGL
- https://webglfundamentals.org/webgl/lessons/webgl-3d-textures.html
- http://learnwebgl.brown37.net/10_surface_properties/texture_mapping_images.html

KR,
Patrick Adelberger