|
@@ -28,7 +28,7 @@
|
|
|
<body>
|
|
|
|
|
|
<div id="container"></div>
|
|
|
- <div id="info"><a href="http://threejs.org" target="_blank">threejs</a> - Transparency with Non-Premultipled Alpha (left) versus Premultiplied Alpha (right) with RGBA8 Buffers by <a href="http://clara.io/" target="_blank">Ben Houston</a>.</div>
|
|
|
+ <div id="info"><a href="http://threejs.org" target="_blank">threejs</a> - Transparency with Premultiplied Alpha (right) and without (left)<br /> using RGBA8 Buffers by <a href="http://clara.io/" target="_blank">Ben Houston</a>.</div>
|
|
|
|
|
|
<script src="../build/three.min.js"></script>
|
|
|
<script src="../examples/js/controls/OrbitControls.js"></script>
|
|
@@ -88,7 +88,7 @@
|
|
|
} );
|
|
|
var geometry = new THREE.SphereGeometry( 18, 30, 30 );
|
|
|
var torusMesh1 = new THREE.Mesh( geometry, standardMaterial );
|
|
|
- torusMesh1.position.x = -20.0;
|
|
|
+ torusMesh1.position.x = 20.0;
|
|
|
torusMesh1.castShadow = true;
|
|
|
scene.add( torusMesh1 );
|
|
|
objects.push( torusMesh1 );
|
|
@@ -121,7 +121,7 @@
|
|
|
} );
|
|
|
|
|
|
var torusMesh2 = new THREE.Mesh( geometry, standardMaterialPremultiplied );
|
|
|
- torusMesh2.position.x = 20.0;
|
|
|
+ torusMesh2.position.x = -20.0;
|
|
|
torusMesh2.castShadow = true;
|
|
|
scene.add( torusMesh2 );
|
|
|
objects.push( torusMesh2 );
|