From f6e8a9f465a8e15b6caa0bd71440c85ba8c1d101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20T=C3=A9treault-Pinard?= Date: Tue, 23 May 2017 17:12:35 -0400 Subject: [PATCH 1/2] add `vertexIntensityBounds` param --- README.md | 4 +++- mesh.js | 13 +++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 966dabd..b503a3d 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,8 @@ Creates a simplicial complex that can be drawn directly in a WebGL context. + `vertexUVs` + `cellUVs` + `vertexIntensity` + + `colormap` + + `vertexIntensityBounds` intensity range for the colormap + `cellIntensity` + `cellColors` A list of per cell color attributes + `meshColor` A constant color for the entire mesh @@ -100,4 +102,4 @@ Epsilon for face normals calculation Opacity # Credits -(c) 2013-2015 Mikola Lysenko. MIT License \ No newline at end of file +(c) 2013-2015 Mikola Lysenko. MIT License diff --git a/mesh.js b/mesh.js index 9e90c8c..77c34ab 100644 --- a/mesh.js +++ b/mesh.js @@ -323,10 +323,15 @@ proto.update = function(params) { var intensityHi = -Infinity if(!vertexUVs && !cellUVs) { if(vertexIntensity) { - for(var i=0; i Date: Wed, 31 May 2017 19:03:12 -0400 Subject: [PATCH 2/2] lock gl-shader to 4.2.0 to clear warnings --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f1ee469..4afe142 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "colormap": "^2.1.0", "gl-buffer": "^2.0.8", "gl-mat4": "^1.0.0", - "gl-shader": "^4.0.5", + "gl-shader": "4.2.0", "gl-texture2d": "^2.0.8", "gl-vao": "^1.1.3", "glsl-specular-cook-torrance": "^2.0.1",