Files
three.js/utils
alteredq 01bebe5c40 Added DataTexture, for creating textures out of raw data.
DataTexture can be used in the same places like image / video based Texture (WebGLRenderer-only).

To be used like this:

var width = 64, height = 64, bytes = 3;
var data = new Uint8Array( width * height * bytes );

// fill data array with values 0 .. 255

var texture = DataTexture( data, width, height, THREE.RGBFormat );
texture.needsUpdate = true;

For the moment only UNSIGNED_BYTE type is supported.
2011-08-03 00:50:43 +02:00
..
2011-05-28 20:18:35 +01:00
2011-06-10 17:09:47 +02:00
2011-06-10 17:09:47 +02:00
2011-06-10 17:09:47 +02:00
2011-06-10 17:09:47 +02:00