Last change
on this file since 12294 was
12115,
checked in by wiesep, 6 years ago
|
Changed folder structure, deletet some unused files and cleaned up code
|
File size:
878 bytes
|
Line | |
---|
1 | //--------------------------------------------------------------------------- |
---|
2 | //These materials/shaders are part of the NEW InstanceManager implementation |
---|
3 | //Written by Matias N. Goldberg ("dark_sylinc") |
---|
4 | //--------------------------------------------------------------------------- |
---|
5 | |
---|
6 | //--------------------------------------------- |
---|
7 | //Pixel Shader Input |
---|
8 | //--------------------------------------------- |
---|
9 | struct PS_INPUT |
---|
10 | { |
---|
11 | #ifdef DEPTH_SHADOWCASTER |
---|
12 | float3 unused : TEXCOORD0; |
---|
13 | float depth : TEXCOORD1; |
---|
14 | #else |
---|
15 | float2 uv0 : TEXCOORD0; |
---|
16 | float3 Normal : TEXCOORD1; |
---|
17 | float3 vPos : TEXCOORD2; |
---|
18 | |
---|
19 | #ifdef DEPTH_SHADOWRECEIVER |
---|
20 | float4 lightSpacePos : TEXCOORD3; |
---|
21 | #endif |
---|
22 | #endif |
---|
23 | }; |
---|
24 | |
---|
25 | #define SHADOW_BIAS 0 |
---|
26 | |
---|
27 | //--------------------------------------------- |
---|
28 | //Vertex Shader Output |
---|
29 | //--------------------------------------------- |
---|
30 | struct VS_OUTPUT |
---|
31 | { |
---|
32 | float4 Position : POSITION; |
---|
33 | PS_INPUT ps; |
---|
34 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.