source: nanovis/tags/1.1.1/shaders/one_plane.cg @ 4833

Last change on this file since 4833 was 3177, checked in by mmc, 12 years ago

Updated all of the copyright notices to reference the transfer to
the new HUBzero Foundation, LLC.

File size: 842 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * ======================================================================
4 *  AUTHOR:  Wei Qiao <qiaow@purdue.edu>
5 *           Purdue Rendering and Perceptualization Lab (PURPL)
6 *
7 *  Copyright (c) 2004-2012  HUBzero Foundation, LLC
8 *
9 *  See the file "license.terms" for information on usage and
10 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
11 * ======================================================================
12 */
13
14
15float4 main(in float2 uv: TEXCOORD0,
16            uniform sampler2D data,
17            uniform sampler1D tf,
18            uniform float4 render_param) : COLOR
19{
20    float sample = tex2D(data, uv).x;
21    float4 color = tex1D(tf, sample);
22    //return float4(sample, sample, sample, 1);
23    color.w = 1.;
24    return color;
25}
Note: See TracBrowser for help on using the repository browser.