Examples: Replaces UV test grid

上级 b2d69444
......@@ -85,7 +85,7 @@
cameraControls.addEventListener( 'change', render );
// TEXTURE MAP
var textureMap = new THREE.TextureLoader().load( 'textures/UV_Grid_Sm.jpg' );
var textureMap = new THREE.TextureLoader().load( 'textures/uv_grid_opengl.jpg' );
textureMap.wrapS = textureMap.wrapT = THREE.RepeatWrapping;
textureMap.anisotropy = 16;
......
......@@ -186,7 +186,7 @@
// Simple geometry with basic material
// ---------------------------------------------------------------------
// Icosahedron
var mapGrid = new THREE.TextureLoader().load( 'textures/UV_Grid_Sm.jpg' );
var mapGrid = new THREE.TextureLoader().load( 'textures/uv_grid_opengl.jpg' );
mapGrid.wrapS = mapGrid.wrapT = THREE.RepeatWrapping;
var material = new THREE.MeshBasicMaterial( {
color: 0xffffff,
......
http://www.helloluxx.com/tutorials/cinema4d-2/cinema4d-materials/uv-grids/
\ No newline at end of file
......@@ -37,7 +37,7 @@
camera.add( pointLight );
scene.add( camera );
var map = new THREE.TextureLoader().load( 'textures/UV_Grid_Sm.jpg' );
var map = new THREE.TextureLoader().load( 'textures/uv_grid_opengl.jpg' );
map.wrapS = map.wrapT = THREE.RepeatWrapping;
map.anisotropy = 16;
......
......@@ -45,7 +45,7 @@
//
var map = new THREE.TextureLoader().load( 'textures/UV_Grid_Sm.jpg' );
var map = new THREE.TextureLoader().load( 'textures/uv_grid_opengl.jpg' );
map.wrapS = map.wrapT = THREE.RepeatWrapping;
map.anisotropy = 16;
......
......@@ -142,7 +142,7 @@
var knots2 = [ 0, 0, 0, 0, 1, 1, 1, 1 ];
var nurbsSurface = new NURBSSurface( degree1, degree2, knots1, knots2, nsControlPoints );
var map = new THREE.TextureLoader().load( 'textures/UV_Grid_Sm.jpg' );
var map = new THREE.TextureLoader().load( 'textures/uv_grid_opengl.jpg' );
map.wrapS = map.wrapT = THREE.RepeatWrapping;
map.anisotropy = 16;
......
......@@ -59,7 +59,7 @@
scene.add( group );
var loader = new THREE.TextureLoader();
var texture = loader.load( "textures/UV_Grid_Sm.jpg" );
var texture = loader.load( "textures/uv_grid_opengl.jpg" );
// it's necessary to apply these settings in order to correctly display the texture on a shape geometry
......
......@@ -79,7 +79,7 @@
cameraControls.addEventListener( 'change', render );
// TEXTURE MAP
var textureMap = new THREE.TextureLoader().load( 'textures/UV_Grid_Sm.jpg' );
var textureMap = new THREE.TextureLoader().load( 'textures/uv_grid_opengl.jpg' );
textureMap.wrapS = textureMap.wrapT = THREE.RepeatWrapping;
textureMap.anisotropy = 16;
......
......@@ -130,7 +130,7 @@
loader.load( "models/ctm/ben.ctm", function ( geometry ) {
var material = new THREE.MeshLambertMaterial( { color: 0xffaa00, map: textureLoader.load( "textures/UV_Grid_Sm.jpg" ), envMap: reflectionCube, combine: THREE.MixOperation, reflectivity: 0.3 } );
var material = new THREE.MeshLambertMaterial( { color: 0xffaa00, map: textureLoader.load( "textures/uv_grid_opengl.jpg" ), envMap: reflectionCube, combine: THREE.MixOperation, reflectivity: 0.3 } );
callbackModel( geometry, 450, material, 0, - 200, 0, 0, 0 );
checkTime();
......
......@@ -79,7 +79,7 @@
var textureLoader = new THREE.TextureLoader( manager );
var texture = textureLoader.load( 'textures/UV_Grid_Sm.jpg' );
var texture = textureLoader.load( 'textures/uv_grid_opengl.jpg' );
// model
......
......@@ -157,7 +157,7 @@
var hatchingMaterial = createShaderMaterial( ToonShaderHatching, light, ambientLight );
var dottedMaterial = createShaderMaterial( ToonShaderDotted, light, ambientLight );
var texture = new THREE.TextureLoader().load( "textures/UV_Grid_Sm.jpg" );
var texture = new THREE.TextureLoader().load( "textures/uv_grid_opengl.jpg" );
texture.wrapS = THREE.RepeatWrapping;
texture.wrapT = THREE.RepeatWrapping;
......
......@@ -79,7 +79,7 @@
{ name: 'Multiply', constant: THREE.MultiplyBlending }
];
var map0 = textureLoader.load( 'textures/UV_Grid_Sm.jpg' );
var map0 = textureLoader.load( 'textures/uv_grid_opengl.jpg' );
var map1 = textureLoader.load( 'textures/sprite0.jpg' );
var map2 = textureLoader.load( 'textures/sprite0.png' );
var map3 = textureLoader.load( 'textures/lensflare/lensflare0.png' );
......
......@@ -56,7 +56,7 @@
var geometry = new THREE.BoxBufferGeometry( 10, 10, 10 );
new THREE.TextureLoader().load( 'textures/UV_Grid_Sm.jpg', function ( texture ) {
new THREE.TextureLoader().load( 'textures/uv_grid_opengl.jpg', function ( texture ) {
texture.wrapS = texture.wrapT = THREE.RepeatWrapping;
texture.anisotropy = renderer.capabilities.getMaxAnisotropy();
......
......@@ -93,7 +93,7 @@
}, false );
this._background.crossOrigin = '';
this._background.src = "textures/UV_Grid_Sm.jpg";
this._background.src = "textures/uv_grid_opengl.jpg";
this._draw();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册