未验证 提交 6a7f52b4 编写于 作者: M Michael Herzog 提交者: GitHub

Merge pull request #14586 from Mugen87/dev18

Examples: Clean up
......@@ -83,8 +83,7 @@
context.fillStyle = gradient;
context.fillRect( 0, 0, canvas.width, canvas.height );
var shadowTexture = new THREE.Texture( canvas );
shadowTexture.needsUpdate = true;
var shadowTexture = new THREE.CanvasTexture( canvas );
var shadowMaterial = new THREE.MeshBasicMaterial( { map: shadowTexture } );
var shadowGeo = new THREE.PlaneBufferGeometry( 300, 300, 1, 1 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册