Skip to content

Instantly share code, notes, and snippets.

@mrdoob
Created November 22, 2011 13:43
Show Gist options
  • Save mrdoob/1385689 to your computer and use it in GitHub Desktop.
Save mrdoob/1385689 to your computer and use it in GitHub Desktop.
Minecraft look
var texture = THREE.ImageUtils.loadTexture( file );
texture.wrapS = THREE.ClampToEdgeWrapping;
texture.wrapT = THREE.ClampToEdgeWrapping;
texture.magFilter = THREE.NearestFilter;
texture.minFilter = THREE.LinearMipMapLinearFilter;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment