未验证 提交 d810ec55 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #19315 from WestLangley/dev_cleanup

Examples: Clean up
......@@ -65,11 +65,12 @@
// light
var dirLight = new THREE.DirectionalLight( 0xffffff );
dirLight.position.set( 200, 200, 1000 ).normalize();
var hemiLight = new THREE.HemisphereLight( 0xffffff, 0x000000 , 1 );
scene.add( hemiLight );
camera.add( dirLight );
camera.add( dirLight.target );
var dirLight = new THREE.DirectionalLight( 0xffffff, 0.5 );
dirLight.position.set( 200, 200, 200 );
scene.add( dirLight );
var loader = new NRRDLoader();
loader.load( "models/nrrd/I.nrrd", function ( volume ) {
......
......@@ -59,11 +59,12 @@
// light
var dirLight = new THREE.DirectionalLight( 0xffffff );
dirLight.position.set( 200, 200, 1000 );
var hemiLight = new THREE.HemisphereLight( 0xffffff, 0x000000, 1 );
scene.add( hemiLight );
camera.add( dirLight );
camera.add( dirLight.target );
var dirLight = new THREE.DirectionalLight( 0xffffff, 0.5 );
dirLight.position.set( 200, 200, 200 );
scene.add( dirLight );
loader = new VRMLLoader();
loadAsset( params.asset );
......
......@@ -41,11 +41,12 @@
// light
var dirLight = new THREE.DirectionalLight( 0xffffff );
dirLight.position.set( 2, 2, 10 );
var hemiLight = new THREE.HemisphereLight( 0xffffff, 0x000000, 1 );
scene.add( hemiLight );
camera.add( dirLight );
camera.add( dirLight.target );
var dirLight = new THREE.DirectionalLight( 0xffffff, 0.5 );
dirLight.position.set( 2, 2, 2 );
scene.add( dirLight );
var loader = new VTKLoader();
loader.load( "models/vtk/bunny.vtk", function ( geometry ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册