Changeset 617 for trunk/gui/vizservers/nanovis/shaders/zincblende_volume.cg
- Timestamp:
- Mar 8, 2007 5:56:29 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/vizservers/nanovis/shaders/zincblende_volume.cg
r580 r617 29 29 PixelOut OUT; 30 30 31 // INSOO32 //float4 tex_coord = mul(modelViewInv, IN.TexCoord) + float4(0.5, 0.5, 0.5, 0.5);33 31 float4 tex_coord = mul(modelViewInv, IN.TexCoord); 34 32 float4 twice_cell_size = cellSize * 2.0; … … 43 41 float4 voxel_face_center_c = f4tex3D(volumeA, tex_coord_c) + f4tex3D(volumeB, tex_coord_c - cellSize); 44 42 45 46 43 //combine 8 sampling results 47 44 float sample = (voxel_corner.x + voxel_face_center_a.y + voxel_face_center_b.z + voxel_face_center_c.w) * 0.125;
Note: See TracChangeset
for help on using the changeset viewer.