Rev | Line | |
---|
[2269] | 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 | uniform sampler2D tex0;
|
---|
| 15 |
|
---|
| 16 | void main(void)
|
---|
| 17 | {
|
---|
| 18 | vec2 mainTexCoord = gl_TexCoord[0].xy;
|
---|
| 19 |
|
---|
| 20 | vec4 color = texture2D(tex0, mainTexCoord);
|
---|
| 21 | float intensity = max(color.x, max(color.y, color.z));
|
---|
| 22 | color = color * intensity;
|
---|
| 23 | gl_FragColor = color;
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | ///////////////////////////////////////////////////////////////////////////////
|
---|
Note: See
TracBrowser
for help on using the repository browser.