Changeset 20586 for issm/trunk-jpl/src/m/plot/plot_mesh.js
- Timestamp:
- 04/30/16 23:09:24 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/plot_mesh.js
r20585 r20586 1 function plot_mesh(md,options,canvas ,gl,node) {1 function plot_mesh(md,options,canvas) { 2 2 // Usage: 3 // plot_mesh(md,options,canvas ,gl);3 // plot_mesh(md,options,canvas); 4 4 // 5 5 // See also: PLOTMODEL … … 56 56 57 57 //Compute gl variables: 58 var scale = 1 / (xmax - xmin); 58 var gl = canvas.gl; 59 var node = Node(gl,options); 60 canvas.nodes[canvas.nodes.length] = node; 61 scale = 1 / (xmax - xmin); 59 62 node["shaderName"] = "colored"; 60 63 node["shader"] = gl["shaders"][node["shaderName"]]["program"];
Note:
See TracChangeset
for help on using the changeset viewer.