Ignore:
Timestamp:
04/30/16 23:09:24 (9 years ago)
Author:
dlcheng
Message:

CHG (javascript): Resolving incorrect log scaling. Simplifying plot routines.

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) {
     1function plot_mesh(md,options,canvas) {
    22        //   Usage:
    3         //      plot_mesh(md,options,canvas,gl);
     3        //      plot_mesh(md,options,canvas);
    44        //
    55        //   See also: PLOTMODEL
     
    5656
    5757        //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);
    5962        node["shaderName"] = "colored";
    6063        node["shader"] = gl["shaders"][node["shaderName"]]["program"];
Note: See TracChangeset for help on using the changeset viewer.