Skip to content

Commit

Permalink
patch for lastest three, not using module
Browse files Browse the repository at this point in the history
new three lighting
  • Loading branch information
sjpt committed Sep 26, 2024
1 parent 00a8fab commit e620c3e
Show file tree
Hide file tree
Showing 3 changed files with 53,933 additions and 9 deletions.
2 changes: 1 addition & 1 deletion marchtest.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function marchTestInit() {
camera.add(lightGroup);
scene.add(camera);
lighta = new THREE.AmbientLight( 0xffffff, 0.1 ); lightGroup.add(lighta);
light = new THREE.DirectionalLight(THREE.Color.NAMES.white, 1); lightGroup.add(light)
light = new THREE.DirectionalLight(THREE.Color.NAMES.white, Math.PI); lightGroup.add(light); // nb intensity change for three lighting around rev 165
light.position.set(0.6, 0.3, 1);

marching = new Marching(isWebGL2);
Expand Down
23 changes: 15 additions & 8 deletions marchtestlocal.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,23 @@
input[type="range"] {width: 20em}
</style>
<!-- <script src="https://rawgit.com/mrdoob/three.js/dev/build/three.js"></script> -->
<script src="three150.js"></script>
<script src="TrackballControls.js"></script>
<script src="https://rawgit.com/mrdoob/stats.js/master/build/stats.js"></script>
<!-- <script src="three150.js"></script> -->
<script type="module">
console.log('start getthreemod')
import * as THREE from './three168.module.js';
console.log('import done getthreemod')
window.THREE = Object.assign({}, THREE)
console.log('export done getthreemod')
</script>
<script defer src="TrackballControls.js"></script>
<script defer src="https://rawgit.com/mrdoob/stats.js/master/build/stats.js"></script>

<script src="marching.js"></script>
<script src="marchtest.js"></script>
<script src="testdata.js"></script>
<script defer src="marching.js"></script>
<script defer src="marchtest.js"></script>
<script defer src="testdata.js"></script>

<script src="../TextureMaterial/col.js"></script>
<script src="../TextureMaterial/TextureMaterial.js" type="module"></script>
<script defer src="../TextureMaterial/col.js"></script>
<script defer src="../TextureMaterial/TextureMaterial.js" type="module"></script>

</head>
<body style="overflow: hidden;">
Expand Down
Loading

0 comments on commit e620c3e

Please sign in to comment.