source:
branches/blt4/packages/vizservers/nanovis/shaders/queryvelocity.cg
@
2936
Last change on this file since 2936 was 2936, checked in by gah, 12 years ago | |
---|---|
File size: 253 bytes |
Line | |
---|---|
1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
2 | |
3 | float4 main(float3 pos : TEXCOORD0, |
4 | uniform sampler3D vfield) : COLOR |
5 | { |
6 | float3 velocity = tex3D(vfield, pos).yzw * 2 - float3(1, 1, 1); |
7 | return float4(velocity, 1); |
8 | } |
Note: See TracBrowser
for help on using the repository browser.