未验证 提交 0d6fa840 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #15052 from Mugen87/dev19

Docs: Clean up
......@@ -14,15 +14,15 @@
</p>
<p>
请将[link:https://github.com/mrdoob/three.js/blob/master/examples/js/Detector.js]引入到你的文件,并在尝试开始渲染之前先运行该文件。
请将[link:https://github.com/mrdoob/three.js/blob/master/examples/js/WebGL.js]引入到你的文件,并在尝试开始渲染之前先运行该文件。
</p>
<code>
if (Detector.webgl) {
if (WEBGL.isWebGLAvailable()) {
// Initiate function or other initializations here
animate();
} else {
var warning = Detector.getWebGLErrorMessage();
var warning = WEBGL.getWebGLErrorMessage();
document.getElementById('container').appendChild(warning);
}
</code>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册