source: GTP/trunk/App/Demos/Illum/Shark3D/version164x12u/IllumDemo/src/res/levelutil/shader/prog/d3d9_hlsl/envmapSimple_d3d9_hlsl_ps1x1.s3d_shadercode @ 2196

Revision 2196, 915 bytes checked in by szirmay, 17 years ago (diff)
Line 
1///////////////////////////////////////////////////////////////////////////////
2//
3//      ##  ######
4//       ######  ###
5//  ## ###############        Shark 3D Engine (www.shark3d.com)
6//   ########## # # #
7//    ########                Copyright (c) 1996-2006 Spinor GmbH.
8//   ######### # # #          All rights reserved.
9//  ##   ##########
10//      ##
11//
12///////////////////////////////////////////////////////////////////////////////
13
14
15
16struct PS_INPUT
17{
18        float3 tex0:TEXCOORD0;
19        float3 normal:TEXCOORD1;
20};
21
22sampler colorSamp: register(s0);
23
24
25///////////////////////////////////////////////////////////////////////////////
26// Pixelshader
27// Profile: 2x0
28
29float4 main(PS_INPUT input): COLOR0
30{
31        float3 ref = reflect(input.tex0, normalize(input.normal));
32    return texCUBE(colorSamp, ref);
33}
34
35///////////////////////////////////////////////////////////////////////////////
Note: See TracBrowser for help on using the repository browser.