Changeset 401 for trunk/gui/vizservers/nanovis/shaders
- Timestamp:
- Apr 10, 2006, 7:49:34 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/vizservers/nanovis/shaders/one_volume.cg
r396 r401 18 18 19 19 20 //#define PHONG_SHADING20 #define PHONG_SHADING 21 21 22 22 PixelOut main(v2f IN, /* uniform sampler1D tf,*/ … … 37 37 #ifdef PHONG_SHADING 38 38 //lighting parameters 39 float3 normal = normalize(sample.yzw); 39 float3 normal; 40 if(length(sample.yzw)>0.0) 41 normal = normalize(sample.yzw); 42 40 43 float3 light_vector = normalize(IN.Light); 41 44 float3 eye_vector = normalize(IN.EyeVector); … … 46 49 //sample the transfer function texture 47 50 float4 color = tex1D(tf, sample.x); 48 color.w = 5*color.w/renderParameters.x;51 color.w = 30*color.w/renderParameters.x; 49 52 50 53 //float4 color = float4(sample.x, 0, 0, 1);
Note: See TracChangeset
for help on using the changeset viewer.