Rev | Line | |
---|
[2196] | 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 |
|
---|
| 16 | struct PS_INPUT
|
---|
| 17 | {
|
---|
| 18 | float3 tex0:TEXCOORD0;
|
---|
| 19 | float3 normal:TEXCOORD1;
|
---|
| 20 | };
|
---|
| 21 |
|
---|
| 22 | sampler colorSamp: register(s0);
|
---|
| 23 |
|
---|
| 24 |
|
---|
| 25 | ///////////////////////////////////////////////////////////////////////////////
|
---|
| 26 | // Pixelshader
|
---|
| 27 | // Profile: 2x0
|
---|
| 28 |
|
---|
| 29 | float4 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.