Line | |
---|
1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
2 | |
---|
3 | void main(in float4 position : POSITION, |
---|
4 | in float4 texcoord : TEXCOORD0, |
---|
5 | out float4 posOut : POSITION, |
---|
6 | out float4 texcoordOut : TEXCOORD0, |
---|
7 | uniform float4x4 modelViewProjMatrix) |
---|
8 | { |
---|
9 | // position is in object coordinates |
---|
10 | // Output clip space vertex position |
---|
11 | posOut = mul(modelViewProjMatrix, position); |
---|
12 | |
---|
13 | // Object space texture coordinates |
---|
14 | texcoordOut = texcoord; |
---|
15 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.