Godot: HTML5 export: GLES2: Tiled textures doesn't work for TextureRect and TextureButton, just black rectangle

Created on 15 Feb 2019  路  2Comments  路  Source: godotengine/godot

Godot version: 3.1 master(downloaded yesterday) GLES2

OS/device including version:
HTML5 GLES2 only

Issue description:
HTML5 export: GLES2: Tiled textures doesn't work for TextureRect and TextureButton, just black rectangle

capturegd

Must be:

image

Steps to reproduce:
Just add to scene TextureRect and TextureButton, assign texture, set Expand true, and set Stratch Mode: Tile, export to HTML5 or use "Minimal reproduction project"

Minimal reproduction project:
Empty.zip

bug html5 rendering

Most helpful comment

This is not really a bug, if you want tiling to work WebGL with GLES2, the texture needs to be a power of 2 and have mipmaps, which will look pretty bad anyway. I think in Godot 2.1 we automatically resized the texture to a PO2 and added mipmaps if you register it like this, so this may be added as a solution here..

All 2 comments

This is not really a bug, if you want tiling to work WebGL with GLES2, the texture needs to be a power of 2 and have mipmaps, which will look pretty bad anyway. I think in Godot 2.1 we automatically resized the texture to a PO2 and added mipmaps if you register it like this, so this may be added as a solution here..

Added a few hacks so this still works on WebGL

Was this page helpful?
0 / 5 - 0 ratings