소스 검색

add warning for IE/Edge users

aardgoose 8 년 전
부모
커밋
640280f202
1개의 변경된 파일11개의 추가작업 그리고 1개의 파일을 삭제
  1. 11 1
      examples/webgl_gpgpu_protoplanet.html

+ 11 - 1
examples/webgl_gpgpu_protoplanet.html

@@ -27,6 +27,10 @@
 				width: 100%;
 			}
 
+			#warning {
+				color: #ff0000;
+			}
+
 		</style>
 	</head>
 	<body>
@@ -34,7 +38,7 @@
 		<div id="info">
 			<a href="http://threejs.org" target="_blank">three.js</a> - <span id="protoplanets"></span> webgl gpgpu debris<br/>
 			Select <span id="options"></span> debris<br/>
-
+			<span id="warning"></span>
 		</div>
 
 		<script src="../build/three.js"></script>
@@ -302,6 +306,12 @@
 
 			document.getElementById( 'options' ).innerHTML = options;
 
+			if ( isEdge || isIE ) {
+
+				document.getElementById( 'warning' ).innerText = 'particle counts greater than 16 may not render with ' + ( isEdge ? 'Edge' : 'IE11' );
+
+			}
+
 			var last = performance.now();
 
 			var gpuCompute;