Pārlūkot izejas kodu

Added forgotten detector to custom attributes particle billboards example.

alteredq 14 gadi atpakaļ
vecāks
revīzija
ee98b4ce6e
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      examples/webgl_custom_attributes_particles2.html

+ 3 - 0
examples/webgl_custom_attributes_particles2.html

@@ -33,6 +33,7 @@
 		<script src="../build/Three.js"></script>
 
 		<script type="text/javascript" src="js/RequestAnimationFrame.js"></script>
+		<script type="text/javascript" src="js/Detector.js"></script>
 		<script type="text/javascript" src="js/Stats.js"></script>
 
 		<script type="x-shader/x-vertex" id="vertexshader">
@@ -76,6 +77,8 @@
 
 		<script type="text/javascript">
 
+		if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
+
 		var renderer, scene, camera, stats;
 
 		var sphere, uniforms, attributes;