Permalink
Browse files

Added @alteredq's compressed textures recomendation in the example it…

…self.
  • Loading branch information...
1 parent 802143c commit 12744d4983a2839043b9e629d093edc01dc9fbfd @mrdoob committed Aug 30, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 examples/webgl_materials_texture_compressed.html
@@ -57,6 +57,14 @@
geometry = new THREE.CubeGeometry( 200, 200, 200 );
+ /*
+ This is how compressed textures are supposed to be used:
+
+ DXT1 - RGB - opaque textures
+ DXT3 - RGBA - transparent textures with sharp alpha transitions
+ DXT5 - RGBA - transparent textures with full alpha range
+ */
+
var map1 = THREE.ImageUtils.loadCompressedTexture( 'textures/compressed/disturb_dxt1_nomip.dds' );
map1.minFilter = map1.magFilter = THREE.LinearFilter;
map1.anisotropy = 4;

0 comments on commit 12744d4

Please sign in to comment.