Browse Source

Docs: Improve WebGL compatibilty guide. (#28630)

Michael Herzog 1 year ago
parent
commit
f1f9a1c78e

+ 3 - 3
docs/manual/ar/introduction/WebGL-compatibility-check.html

@@ -9,7 +9,7 @@
 	<body class="rtl">
 		<h1>فحص توافق WebGL</h1>
 		<p>
-			على الرغم من أن هذه المشكلة أصبحت أقل وأقل ، إلا أن بعض الأجهزة أو المتصفحات قد لا تدعم WebGL.
+			على الرغم من أن هذه المشكلة أصبحت أقل وأقل ، إلا أن بعض الأجهزة أو المتصفحات قد لا تدعم WebGL 2.
 			تتيح لك الطريقة التالية التحقق مما إذا كانت مدعومة وعرض رسالة للمستخدم إذا لم تكن مدعومة.
 			قم باستيراد وحدة الكشف عن دعم WebGL ، وقم بتشغيل ما يلي قبل محاولة عرض أي شيء.
 		</p>
@@ -17,14 +17,14 @@
 		<code>
 		import WebGL from 'three/addons/capabilities/WebGL.js';
 
-		if ( WebGL.isWebGLAvailable() ) {
+		if ( WebGL.isWebGL2Available() ) {
 
 			// Initiate function or other initializations here
 			animate();
 
 		} else {
 
-			const warning = WebGL.getWebGLErrorMessage();
+			const warning = WebGL.getWebGL2ErrorMessage();
 			document.getElementById( 'container' ).appendChild( warning );
 
 		}

+ 3 - 3
docs/manual/en/introduction/WebGL-compatibility-check.html

@@ -9,7 +9,7 @@
 	<body>
 		<h1>[name]</h1>
 		<p>
-			Even though this is becoming less and less of a problem, some devices or browsers may still not support WebGL.
+			Even though this is becoming less and less of a problem, some devices or browsers may still not support WebGL 2.
 			The following method allows you to check if it is supported and display a message to the user if it is not.
 			Import the WebGL support detection module, and run the following before attempting to render anything.
 		</p>
@@ -17,14 +17,14 @@
 		<code>
 		import WebGL from 'three/addons/capabilities/WebGL.js';
 
-		if ( WebGL.isWebGLAvailable() ) {
+		if ( WebGL.isWebGL2Available() ) {
 
 			// Initiate function or other initializations here
 			animate();
 
 		} else {
 
-			const warning = WebGL.getWebGLErrorMessage();
+			const warning = WebGL.getWebGL2ErrorMessage();
 			document.getElementById( 'container' ).appendChild( warning );
 
 		}

+ 3 - 3
docs/manual/fr/introduction/WebGL-compatibility-check.html

@@ -9,7 +9,7 @@
 	<body>
 		<h1>Compatibilité WebGL ([name])</h1>
 		<p>
-			Même si le problème se présente de moins en moins, certains appareils ou navigateurs peuvent ne toujours pas supporter WebGL.
+			Même si le problème se présente de moins en moins, certains appareils ou navigateurs peuvent ne toujours pas supporter WebGL 2.
 			La méthode suivante vous permet de vérifier si il est supporté et d'afficher un message à l'utilisateur si il ne l'est pas.
 			Importez le module de détection de support WebGL et exécutez ce qui suit avant d'essayer de rendre quoi que ce soit.
 		</p>
@@ -17,14 +17,14 @@
 		<code>
 		import WebGL from 'three/addons/capabilities/WebGL.js';
 
-		if ( WebGL.isWebGLAvailable() ) {
+		if ( WebGL.isWebGL2Available() ) {
 
 			// Initiate function or other initializations here
 			animate();
 
 		} else {
 
-			const warning = WebGL.getWebGLErrorMessage();
+			const warning = WebGL.getWebGL2ErrorMessage();
 			document.getElementById( 'container' ).appendChild( warning );
 
 		}

+ 5 - 5
docs/manual/it/introduction/WebGL-compatibility-check.html

@@ -9,8 +9,8 @@
 	<body>
 		<h1>Controllo compatibilità WebGL ([name])</h1>
 		<p>
-		Anche se questo sta diventano sempre meno un problema, alcuni dispositivi o browser potrebbero ancora non supportare WebGL.
-		Il seguente codice è utile per controllare se WebGL è supportato, infatti se non lo fosse viene mostrato un messaggio di errore all'utente.
+		Anche se questo sta diventano sempre meno un problema, alcuni dispositivi o browser potrebbero ancora non supportare WebGL 2.
+		Il seguente codice è utile per controllare se WebGL 2 è supportato, infatti se non lo fosse viene mostrato un messaggio di errore all'utente.
 		Importa il modulo di rilevamento del supporto WebGL ed esegui quanto segue prima di tentare di eseguire il rendering di qualsiasi cosa.
 		</p>
 
@@ -18,14 +18,14 @@
 		<code>
 		import WebGL from 'three/addons/capabilities/WebGL.js';
 
-		if ( WebGL.isWebGLAvailable() ) {
+		if ( WebGL.isWebGL2Available() ) {
 
-			// Avviare qui la funzione o altre inizializzazioni
+			// Initiate function or other initializations here
 			animate();
 
 		} else {
 
-			const warning = WebGL.getWebGLErrorMessage();
+			const warning = WebGL.getWebGL2ErrorMessage();
 			document.getElementById( 'container' ).appendChild( warning );
 
 		}

+ 2 - 2
docs/manual/ja/introduction/WebGL-compatibility-check.html

@@ -16,14 +16,14 @@
 		<code>
 		import WebGL from 'three/addons/capabilities/WebGL.js';
 
-		if ( WebGL.isWebGLAvailable() ) {
+		if ( WebGL.isWebGL2Available() ) {
 
 			// Initiate function or other initializations here
 			animate();
 
 		} else {
 
-			const warning = WebGL.getWebGLErrorMessage();
+			const warning = WebGL.getWebGL2ErrorMessage();
 			document.getElementById( 'container' ).appendChild( warning );
 
 		}

+ 3 - 3
docs/manual/ko/introduction/WebGL-compatibility-check.html

@@ -9,7 +9,7 @@
 	<body>
 		<h1>WebGL 호환성 검사([name])</h1>
 		<p>
-			아마 거의 문제가 되지 않을테지만, 몇몇 디바이스나 브라우저는 아직 WebGL을 지원하지 않습니다.
+			아마 거의 문제가 되지 않을테지만, 몇몇 디바이스나 브라우저는 아직 WebGL 2을 지원하지 않습니다.
 			아래 메서드는 지원 여부를 체크해 가능한지 아닌지 메세지를 띄워줄 것입니다.
 			WebGL 지원 감지 모듈을 가져오고 렌더링을 시도하기 전에 다음을 실행하십시오.
 		</p>
@@ -17,14 +17,14 @@
 		<code>
 		import WebGL from 'three/addons/capabilities/WebGL.js';
 
-		if ( WebGL.isWebGLAvailable() ) {
+		if ( WebGL.isWebGL2Available() ) {
 
 			// Initiate function or other initializations here
 			animate();
 
 		} else {
 
-			const warning = WebGL.getWebGLErrorMessage();
+			const warning = WebGL.getWebGL2ErrorMessage();
 			document.getElementById( 'container' ).appendChild( warning );
 
 		}

+ 3 - 3
docs/manual/pt-br/introduction/WebGL-compatibility-check.html

@@ -10,7 +10,7 @@
 		<h1>Compatibilidade WebGL</h1>
 		
 		<p>
-			Mesmo que isso esteja se tornando um problema cada vez menor, alguns dispositivos ou navegadores podem ainda não suportar WebGL. 
+			Mesmo que isso esteja se tornando um problema cada vez menor, alguns dispositivos ou navegadores podem ainda não suportar WebGL 2. 
 			O método a seguir permite verificar se há suporte e exibe uma mensagem para o usuário se não existir.
 			Importe o módulo de detecção de suporte WebGL e execute o seguinte antes de tentar renderizar qualquer coisa.
 		</p>
@@ -18,14 +18,14 @@
 		<code>
 		import WebGL from 'three/addons/capabilities/WebGL.js';
 
-		if ( WebGL.isWebGLAvailable() ) {
+		if ( WebGL.isWebGL2Available() ) {
 
 			// Initiate function or other initializations here
 			animate();
 
 		} else {
 
-			const warning = WebGL.getWebGLErrorMessage();
+			const warning = WebGL.getWebGL2ErrorMessage();
 			document.getElementById( 'container' ).appendChild( warning );
 
 		}

+ 4 - 4
docs/manual/ru/introduction/WebGL-compatibility-check.html

@@ -9,7 +9,7 @@
 	<body>
 		<h1>Проверка совместимости с WebGL ([name])</h1>
 		<p>
-			Несмотря на то, что это становится все менее и менее серьезной проблемой, но все еще некоторые устройства или браузеры могут не поддерживать WebGL.
+			Несмотря на то, что это становится все менее и менее серьезной проблемой, но все еще некоторые устройства или браузеры могут не поддерживать WebGL 2.
 			Следующий метод позволяет вам проверить, поддерживается ли он, и отобразить сообщение пользователю, если это не так.
 			Импортируйте модуль обнаружения поддержки WebGL и выполните следующее, прежде чем пытаться что-либо отобразить.
 		</p>
@@ -17,14 +17,14 @@
 		<code>
 		import WebGL from 'three/addons/capabilities/WebGL.js';
 
-		if ( WebGL.isWebGLAvailable() ) {
+		if ( WebGL.isWebGL2Available() ) {
 
-			// Инициализируйте функцию или другие инициализации здесь
+			// Initiate function or other initializations here
 			animate();
 
 		} else {
 
-			const warning = WebGL.getWebGLErrorMessage();
+			const warning = WebGL.getWebGL2ErrorMessage();
 			document.getElementById( 'container' ).appendChild( warning );
 
 		}

+ 4 - 5
docs/manual/zh/introduction/WebGL-compatibility-check.html

@@ -9,25 +9,24 @@
 	<body>
 		<h1>WebGL兼容性检查([name])</h1>
 		<p>
-			虽然这个问题现在已经变得越来不明显,但不可否定的是,某些设备以及浏览器直到现在仍然不支持WebGL。
-			<br>以下的方法可以帮助你检测当前用户所使用的环境是否支持WebGL,如果不支持,将会向用户提示一条信息。
+			虽然这个问题现在已经变得越来不明显,但不可否定的是,某些设备以及浏览器直到现在仍然不支持WebGL 2
+			<br>以下的方法可以帮助你检测当前用户所使用的环境是否支持WebGL 2,如果不支持,将会向用户提示一条信息。
 		</p>
 		<p>
-			请将[link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/capabilities/WebGL.js]引入到你的文件,并在尝试开始渲染之前先运行该文件。
 			导入 WebGL 兼容检测模块,并在尝试渲染任何内容之前运行以下程序。
 		</p>
 
 		<code>
 			import WebGL from 'three/addons/capabilities/WebGL.js';
 	
-			if ( WebGL.isWebGLAvailable() ) {
+			if ( WebGL.isWebGL2Available() ) {
 	
 				// Initiate function or other initializations here
 				animate();
 	
 			} else {
 	
-				const warning = WebGL.getWebGLErrorMessage();
+				const warning = WebGL.getWebGL2ErrorMessage();
 				document.getElementById( 'container' ).appendChild( warning );
 	
 			}