source: OGRE/trunk/ogrenew/Samples/Media/DeferredShadingMedia/DeferredShading/post/hlsl/ShowColour_ps.hlsl @ 692

Revision 692, 1.7 KB checked in by mattausch, 19 years ago (diff)

adding ogre 1.2 and dependencies

Line 
1/******************************************************************************
2Copyright (c) W.J. van der Laan
3
4Permission is hereby granted, free of charge, to any person obtaining a copy of
5this software  and associated documentation files (the "Software"), to deal in
6the Software without restriction, including without limitation the rights to use,
7copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
8Software, and to permit persons to whom the Software is furnished to do so, subject
9to the following conditions:
10
11The above copyright notice and this permission notice shall be included in all copies
12or substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
16PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE
19SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20******************************************************************************/
21/** Deferred shading framework
22        // W.J. :wumpus: van der Laan 2005 //
23       
24        Post shader: Debug, show colour channel
25*/
26sampler Tex0: register(s0);
27sampler Tex1: register(s1);
28
29float4 main(float2 texCoord: TEXCOORD0, float2 projCoord: TEXCOORD1) : COLOR
30{
31    float4 a0 = tex2D(Tex0, texCoord); // Attribute 0: Diffuse color+shininess
32    float4 a1 = tex2D(Tex1, texCoord); // Attribute 1: Normal+depth
33   
34    return float4(a0.xyz, 0);
35}
36
Note: See TracBrowser for help on using the repository browser.