Ignore:
Timestamp:
Sep 16, 2007 6:38:47 PM (17 years ago)
Author:
vrinside
Message:

Modified a routine for compute texture coordinate. Data decompose sequence is a little different from VolQD.

--Thi` line, and those below, will be ignored--

M zincblende_volume.cg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/vizservers/nanovis/shaders/zincblende_volume.cg

    r617 r801  
    3232  float4 twice_cell_size = cellSize * 2.0;
    3333       
     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/*
    3445  float4 tex_coord_a = tex_coord - float4(twice_cell_size.x, twice_cell_size.y, 0, 0);
    3546  float4 tex_coord_b = tex_coord - float4(twice_cell_size.x, 0, twice_cell_size.z, 0);
     
    4051  float4 voxel_face_center_b = f4tex3D(volumeA, tex_coord_b) + f4tex3D(volumeB, tex_coord_b - cellSize);
    4152  float4 voxel_face_center_c = f4tex3D(volumeA, tex_coord_c) + f4tex3D(volumeB, tex_coord_c - cellSize);
     53*/
    4254       
    4355  //combine 8 sampling results
Note: See TracChangeset for help on using the changeset viewer.