|
@@ -10,14 +10,13 @@
|
|
|
<body>
|
|
|
<h1>[name]</h1><br />
|
|
|
<p>
|
|
|
- Even though this is becoming less and less of a problem, some devices or browsers may still not support WebGL.
|
|
|
- The following method allows you to check if it is supported and display a message to the user if it is not.
|
|
|
+ 虽然这个问题现在已经逐渐地变得很小,但不得不说,有的设备或者浏览器现在仍然不支持WebGL。
|
|
|
+ 以下的方法可以帮助你检测当前用户所使用的环境是否支持WebGL,倘若不支持,将向用户显示一条信息。
|
|
|
</p>
|
|
|
|
|
|
<p>
|
|
|
- Add [link:https://github.com/mrdoob/three.js/blob/master/examples/js/Detector.js]
|
|
|
- to your javascript and run the following before attempting to render anything.
|
|
|
- </p>
|
|
|
+ 请把[link:https://github.com/mrdoob/three.js/blob/master/examples/js/Detector.js]引入到你的文件,并在尝试开始渲染之前先运行该文件。
|
|
|
+ </p>
|
|
|
|
|
|
<code>
|
|
|
if (Detector.webgl) {
|