WebGL을 지원하지 않는 일부 기기나 브라우저를 위해 메세지를 표현하는 코드이다. WebGL 지원 감지 모듈을 가져오고 렌더링을 시도하기 전에 다음을 실행한다.import WebGL from 'three/addons/capabilities/WebGL.js';if ( WebGL.isWebGL2Available() ) { // Initiate function or other initializations here animate();} else { const warning = WebGL.getWebGL2ErrorMessage(); document.getElementById( 'container' ).appendChild( warning );}