Changeset 4561 for branches/1.3


Ignore:
Timestamp:
Jul 18, 2014, 1:36:29 AM (5 years ago)
Author:
ldelgass
Message:

lighting fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3/gui/scripts/nanovisviewer.tcl

    r4560 r4561  
    20982098    # Expanding component name for key.
    20992099    array set _settings [subst {
    2100         $cname-ambient           60
    21012100        $cname-colormap          default
    2102         $cname-diffuse           40
     2101        $cname-light             40
    21032102        $cname-light2side        1
    21042103        $cname-volumeopacity     0.5
    2105         $cname-specularexponent  90
    2106         $cname-specularlevel     30
    21072104        $cname-thickness         350
    21082105        $cname-volumevisible     1
     
    21182115#
    21192116itcl::body Rappture::NanovisViewer::SwitchComponent { cname } {
    2120     if { ![info exists _settings($cname-ambient)] } {
     2117    if { ![info exists _settings($cname-light)] } {
    21212118        InitComponentSettings $cname
    21222119    }
     
    22282225        return [list 0.0 0.0 1.0 1.0]
    22292226    }
    2230     if { ![info exists _settings($cname-ambient)] } {
     2227    if { ![info exists _settings($cname-light)] } {
    22312228        InitComponentSettings $cname
    22322229    }
Note: See TracChangeset for help on using the changeset viewer.