Last change
on this file since 5046 was
4904,
checked in by ldelgass, 9 years ago
|
Merge serveral changes from trunk. Does not include threading, world space
changes, etc.
|
File size:
539 bytes
|
Line | |
---|
1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
2 | /* |
---|
3 | * Copyright (c) 2004-2013 HUBzero Foundation, LLC |
---|
4 | * |
---|
5 | * Authors: |
---|
6 | * Wei Qiao <qiaow@purdue.edu> |
---|
7 | */ |
---|
8 | |
---|
9 | float4 main(in float4 texcoord : TEXCOORD0, |
---|
10 | uniform sampler3D volume, |
---|
11 | uniform sampler1D tf) : COLOR |
---|
12 | { |
---|
13 | float4 sample = tex3D(volume, texcoord.xyz); |
---|
14 | |
---|
15 | // sample the transfer function texture |
---|
16 | float4 color = tex1D(tf, sample.x); |
---|
17 | |
---|
18 | // single slice render, only flat shading, completely opaque. |
---|
19 | color.w = 1; |
---|
20 | |
---|
21 | return color; |
---|
22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.