Ignore:
Timestamp:
Apr 10, 2006, 7:49:34 AM (19 years ago)
Author:
qiaow
Message:

Added Renderable class, the superclass of every class that can be drawn.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/vizservers/nanovis/shaders/one_volume.cg

    r396 r401  
    1818
    1919
    20 //#define PHONG_SHADING
     20#define PHONG_SHADING
    2121
    2222PixelOut main(v2f IN, /* uniform sampler1D tf,*/
     
    3737#ifdef PHONG_SHADING
    3838      //lighting parameters
    39       float3 normal = normalize(sample.yzw);
     39      float3 normal;
     40      if(length(sample.yzw)>0.0)
     41        normal = normalize(sample.yzw);
     42
    4043      float3 light_vector = normalize(IN.Light);
    4144      float3 eye_vector = normalize(IN.EyeVector);
     
    4649      //sample the transfer function texture
    4750      float4 color = tex1D(tf, sample.x);
    48       color.w = 5*color.w/renderParameters.x;
     51      color.w = 30*color.w/renderParameters.x;
    4952
    5053      //float4 color = float4(sample.x, 0, 0, 1);
Note: See TracChangeset for help on using the changeset viewer.