PixelsCommander / HTML-GL

Get as many FPS as you need and amazing effects by rendering HTML/CSS in WebGL
3.45k stars 154 forks source link

Result displayed won't update when opacity has changed #72

Open audifaxdev opened 8 years ago

audifaxdev commented 8 years ago

Expected: I'd like to fade-In/Out some element Result: The element is rendered in its initial state without being updated

Workaround : when using TweenMax to update opacity, elements are updated when resizing the browser's window (only for one frame)

Check this repo to illustrate the issue: https://github.com/audifaxdev/htmlgl-playground

PixelsCommander commented 8 years ago

Thanks, will fix asap

audifaxdev commented 8 years ago

One workaround would be to use HTMLGL.context.updateTextures();

It is however very expensive and makes the frame rate drop.