Changeset 3009 for branches/nanovis2
- Timestamp:
- May 17, 2012 11:42:25 AM (12 years ago)
- Location:
- branches/nanovis2/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/nanovis2/gui/scripts/flowvisviewer.tcl
r3004 r3009 1652 1652 set specularLevel 0.3 1653 1653 set specularExp 90.0 1654 SendCmd "$tag configure -ambient $ambient -diffuse $diffuse -specular {$specularLevel $specularExp}"1654 SendCmd "$tag configure -ambient $ambient -diffuse $diffuse -specularLevel $specularLevel -specularExp $specularExp" 1655 1655 } 1656 1656 } … … 1659 1659 set comp [lindex [$_first components] 0] 1660 1660 set tag $_first-$comp 1661 set opacity [expr { 0.2*$_settings($this-transp)+1}]1661 set opacity [expr { 0.01 * double($_settings($this-transp)) }] 1662 1662 SendCmd "$tag configure -opacity $opacity" 1663 1663 } -
branches/nanovis2/gui/scripts/nanovisviewer.tcl
r3004 r3009 1217 1217 SendCmd "volume shading ambient $ambient" 1218 1218 SendCmd "volume shading diffuse $diffuse" 1219 SendCmd "volume shading specular {$specularLevel $specularExp}" 1219 SendCmd "volume shading specularLevel $specularLevel" 1220 SendCmd "volume shading specularExp $specularExp" 1220 1221 } 1221 1222 } … … 1223 1224 if {[isconnected]} { 1224 1225 set val $_settings($this-transp) 1225 set sval [expr { 0.2*$val+1}]1226 set sval [expr { 0.01 * double($val) }] 1226 1227 SendCmd "volume shading opacity $sval" 1227 1228 }
Note: See TracChangeset
for help on using the changeset viewer.