Skip to content

Commit 11d9066

Browse files
committed
shaders: Add GLSL port of accum_sun.
1 parent acecea9 commit 11d9066

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1624
-4
lines changed
1.28 KB
Binary file not shown.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#include "common.h"
2+
#include "iostructs\v_volume.h"
3+
4+
//////////////////////////////////////////////////////////////////////////////////////////
5+
uniform float4x4 m_texgen;
6+
#ifdef USE_SJITTER
7+
uniform float4x4 m_texgen_J;
8+
#endif
9+
10+
//////////////////////////////////////////////////////////////////////////////////////////
11+
// Vertex
12+
v2p_volume _main ( float4 P )
13+
{
14+
v2p_volume O;
15+
O.hpos = mul( m_WVP, P );
16+
O.tc = mul( m_texgen, P );
17+
#ifdef USE_SJITTER
18+
O.tcJ = mul( m_texgen_J, P );
19+
#endif
20+
return O;
21+
}
2.32 KB
Binary file not shown.
54 Bytes
Binary file not shown.
54 Bytes
Binary file not shown.
996 Bytes
Binary file not shown.
28 Bytes
Binary file not shown.
53 Bytes
Binary file not shown.
24 Bytes
Binary file not shown.
1.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)