felixpalmer / render-2-texture

Demo of bug in iOS WebGL when rendering to a floating point texture

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Render to texture iOS bug

Example of bug where rendering to a floating point buffer fails on iOS.

Live demo of this repository can be found at https://github.com/felixpalmer/render-2-texture

Take a look rtt.js, changing the type from THREE.FloatType to THREE.UnsignedByteType to demonstrate the issue.

Running

Just host this directory with a webserver of your choice. You can also use the webserver.sh script included (provided you have Python) to set up a simple development server.

Then visit http://localhost:4444 in your browser. To view on an iOS device, connect the iOS device to the same network as your computer and then access via the computer's local IP, e.g. 10.0.0.1:4444

About

Demo of bug in iOS WebGL when rendering to a floating point texture

License:MIT License


Languages

Language:JavaScript 93.2%Language:CSS 2.2%Language:Python 1.8%Language:HTML 1.5%Language:C 1.3%