21 lines
511 B
GLSL
21 lines
511 B
GLSL
#include "common.h"
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
uniform float4x4 m_texgen;
|
|
#ifdef USE_SJITTER
|
|
uniform float4x4 m_texgen_J;
|
|
#endif
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
// Vertex
|
|
v2p_volume main ( float4 P: POSITION )
|
|
{
|
|
v2p_volume O;
|
|
O.hpos = mul( m_WVP, P );
|
|
O.tc = mul( m_texgen, P );
|
|
#ifdef USE_SJITTER
|
|
O.tcJ = mul( m_texgen_J, P );
|
|
#endif
|
|
return O;
|
|
}
|
|
FXVS;
|