Changeset 20208
- Timestamp:
- 02/17/16 17:49:26 (9 years ago)
- Location:
- issm/trunk-jpl/src/m/plot
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/plot_mesh.js
r20205 r20208 49 49 node["shader"] = gl["shaders"][node["shaderName"]]["program"]; 50 50 node["scale"] = [scale, scale, scale*options.getfieldvalue('heightscale',1)]; 51 node["translation"] = [(xmin + xmax) / (-2 / scale), (ymin + ymax) / (-2 / scale), (zmin + zmax) / ( -2 / scale)];51 node["translation"] = [(xmin + xmax) / (-2 / scale), (ymin + ymax) / (-2 / scale), (zmin + zmax) / (2 / scale)]; 52 52 node["modelMatrix"] = recalculateModelMatrix(node); 53 53 node["drawMode"] = gl.LINES; -
issm/trunk-jpl/src/m/plot/plot_overlay.js
r20207 r20208 50 50 node["shader"] = gl["shaders"][node["shaderName"]]["program"]; 51 51 node["scale"] = [scale, scale, scale*options.getfieldvalue('heightscale',1)]; 52 node["translation"] = [(xmin + xmax) / (-2 / scale), (ymin + ymax) / (-2 / scale), (zmin + zmax) / ( -2 / scale)];52 node["translation"] = [(xmin + xmax) / (-2 / scale), (ymin + ymax) / (-2 / scale), (zmin + zmax) / (2 / scale)]; 53 53 node["modelMatrix"] = recalculateModelMatrix(node); 54 54 node["texture"] = initTexture(gl,options.getfieldvalue('image')); -
issm/trunk-jpl/src/m/plot/plot_unit.js
r20207 r20208 57 57 node["shader"] = gl["shaders"][node["shaderName"]]["program"]; 58 58 node["scale"] = [scale, scale, scale*options.getfieldvalue('heightscale',1)]; 59 node["translation"] = [(xmin + xmax) / (-2 / scale), (ymin + ymax) / (-2 / scale), (zmin + zmax) / ( -2 / scale)];59 node["translation"] = [(xmin + xmax) / (-2 / scale), (ymin + ymax) / (-2 / scale), (zmin + zmax) / (2 / scale)]; 60 60 node["modelMatrix"] = recalculateModelMatrix(node); 61 61 node["alpha"] = options.getfieldvalue('alpha',1.0); … … 90 90 datamax = caxis[1]; 91 91 datadelta = datamax - datamin; 92 console.log(datadelta, caxis);93 92 94 93 vertices.itemSize = 3;
Note:
See TracChangeset
for help on using the changeset viewer.