Selaa lähdekoodia

Added a link to the blog post that explains the 4 point gradient texture.

Mr.doob 15 vuotta sitten
vanhempi
commit
7277cc4ade
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      src/renderers/CanvasRenderer.js

+ 2 - 0
src/renderers/CanvasRenderer.js

@@ -901,6 +901,8 @@ THREE.CanvasRenderer = function () {
 
 	function getGradientTexture( c1, c2, c3, c4 ) {
 
+		// http://mrdoob.com/blog/post/710
+
 		_pixelMapData[ 0 ] = c1[ 0 ];
 		_pixelMapData[ 1 ] = c1[ 1 ];
 		_pixelMapData[ 2 ] = c1[ 2 ];