Changeset 21164


Ignore:
Timestamp:
08/25/16 11:57:00 (9 years ago)
Author:
dlcheng
Message:

CHG (JS): Atmosphere shading for overlays now affected by atmosphere option. Updating plotdoc with atmosphere option.

Location:
issm/trunk-jpl/src/m/plot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/m/plot/plot_overlay.js

    r21138 r21164  
    6262        canvas.nodes[canvas.nodes.length] = node;
    6363        scale = 1;
    64         node["shaderName"] = "GroundFromSpace";
     64        node["shaderName"] = (options.getfieldvalue('atmosphere','off') == 'on') ? "GroundFromSpace" : "Textured";
    6565        node["shader"] = gl["shaders"][node["shaderName"]];
    6666        node["scale"] = [scale, scale, scale * matrixscale];
  • TabularUnified issm/trunk-jpl/src/m/plot/plotdoc.js

    r20920 r21164  
    4747        console.log('       "overlay": overlay a radar amplitude image behind (default "off", ex: "on", "off")');
    4848        console.log('       "overlay_image": path to overlay image (default "off", ex: "on", "off")');
     49        console.log('       "atmosphere": toggle atmospheric/skysphere shading. (default "off", ex: "on", "off")');
    4950        console.log('       "alpha": transparency coefficient 0.0 to 1.0, the lower, the more transparent. (default 1.0, ex: 0.5, 0.25)');
    5051        console.log('       "heightscale": scaling factor to accentuate height. (default 1, ex: 0.5, 100)');
Note: See TracChangeset for help on using the changeset viewer.