source: nanovis/branches/1.2/shaders/cutplane_vp.cg @ 5046

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: 595 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
9void main(in float4 position : POSITION,
10          in float4 texcoord : TEXCOORD0,
11          out float4 posOut : POSITION,
12          out float4 texcoordOut : TEXCOORD0,
13          uniform float4x4 modelViewProjMatrix)
14{
15    // position is in object coordinates
16    // Output clip space vertex position
17    posOut = mul(modelViewProjMatrix, position);
18
19    // Object space texture coordinates
20    texcoordOut = texcoord;
21}
Note: See TracBrowser for help on using the repository browser.