-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathScreen.Add.fx
More file actions
32 lines (23 loc) · 804 Bytes
/
Copy pathScreen.Add.fx
File metadata and controls
32 lines (23 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// TITLE: Combine shader
// AUTHOR: Yve Verstrepen
// DESCRIPTION:
// This shader adds two texture's rgb channels together.
///////////////////////////////////////////////////////////////////////////
#include "FSVApp.fxh"
/////// Textures & Samplers /////////////////////////////////////////
sampler sampOne : register(s0);
sampler sampTwo : register(s1);
/////// Programs /////////////////////////////////////////
float4 PSApp(in v2p IN) : COLOR0
{
return float4(tex2D(sampOne, IN.TexCoord).rgb + tex2D(sampTwo, IN.TexCoord).rgb, 1);
}
/////// Techniques /////////////////////////////////////////
technique SolidObject
{
pass Pass0
{
VertexShader = compile vs_3_0 VSApp();
PixelShader = compile ps_3_0 PSApp();
}
}