Changeset 801 for trunk/vizservers/nanovis
- Timestamp:
- Sep 16, 2007 6:38:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/vizservers/nanovis/shaders/zincblende_volume.cg
r617 r801 32 32 float4 twice_cell_size = cellSize * 2.0; 33 33 34 // volumeA : outer 35 // volumeB : inner 36 float4 tex_coord_2 = tex_coord + float4(twice_cell_size.x, 0, twice_cell_size.z, 0); 37 float4 tex_coord_3 = tex_coord + float4(0, twice_cell_size.y, twice_cell_size.z, 0); 38 float4 tex_coord_4 = tex_coord + float4(twice_cell_size.x, twice_cell_size.z, 0); 39 40 float4 voxel_corner = f4tex3D(volumeB, tex_coord) + f4tex3D(volumeA, tex_coord - cellSize); 41 float4 voxel_face_center_a = f4tex3D(volumeB, tex_coord_a) + f4tex3D(volumeA, tex_coord_a - cellSize); 42 float4 voxel_face_center_b = f4tex3D(volumeB, tex_coord_b) + f4tex3D(volumeA, tex_coord_b - cellSize); 43 float4 voxel_face_center_c = f4tex3D(volumeB, tex_coord_c) + f4tex3D(volumeA, tex_coord_c - cellSize); 44 /* 34 45 float4 tex_coord_a = tex_coord - float4(twice_cell_size.x, twice_cell_size.y, 0, 0); 35 46 float4 tex_coord_b = tex_coord - float4(twice_cell_size.x, 0, twice_cell_size.z, 0); … … 40 51 float4 voxel_face_center_b = f4tex3D(volumeA, tex_coord_b) + f4tex3D(volumeB, tex_coord_b - cellSize); 41 52 float4 voxel_face_center_c = f4tex3D(volumeA, tex_coord_c) + f4tex3D(volumeB, tex_coord_c - cellSize); 53 */ 42 54 43 55 //combine 8 sampling results
Note: See TracChangeset
for help on using the changeset viewer.