提交 bfa5a1d9 编写于 作者: M Mr.doob

Added info box to canvas shape example.

上级 416d767e
......@@ -11,16 +11,23 @@
margin: 0px;
overflow: hidden;
}
#info {
position: absolute;
top: 0px;
width: 100%;
padding: 5px;
text-align:center;
}
</style>
</head>
<body>
<canvas id="debug" style="position:absolute; left:100px"></canvas>
<script src="../build/three.min.js"></script>
<div id="info"><a href="http://github.com/mrdoob/three.js" target="_blank">three.js</a> - shape geometry</div>
<script src="../build/three.min.js"></script>
<script src="js/Stats.js"></script>
<script>
var container, stats;
......
......@@ -130,13 +130,13 @@
var shaderMaterial = new THREE.ShaderMaterial( {
uniforms: uniforms,
uniforms: uniforms,
attributes: attributes,
vertexShader: document.getElementById( 'vertexshader' ).textContent,
fragmentShader: document.getElementById( 'fragmentshader' ).textContent,
blending: THREE.AdditiveBlending,
depthTest: false,
transparent: true
blending: THREE.AdditiveBlending,
depthTest: false,
transparent: true
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册