提交 6736f511 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #11159 from jostschmithals/docsShadermaterial

Docs ShaderMaterial example: remove attributes property from constructor parameters
......@@ -86,13 +86,14 @@
var material = new THREE.ShaderMaterial( {
uniforms: {
time: { value: 1.0 },
resolution: { value: new THREE.Vector2() }
},
attributes: {
vertexOpacity: { value: [] }
},
vertexShader: document.getElementById( 'vertexShader' ).textContent,
fragmentShader: document.getElementById( 'fragmentShader' ).textContent
} );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册