Rev | Line | |
---|
[2453] | 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 | @include "levelutil/shader/prog/ogl_glsl/" \
|
---|
| 15 | "include_stddef_ogl_glsl_vs1x0.s3d_shadercode_run"
|
---|
| 16 |
|
---|
| 17 | ///////////////////////////////////////////////////////////////////////////////
|
---|
| 18 |
|
---|
| 19 | S3D_BONE_DECL_STD(boneWgh, boneSubscr)
|
---|
| 20 | S3D_MATBONE_DECL_STD(matBone)
|
---|
| 21 |
|
---|
| 22 | ///////////////////////////////////////////////////////////////////////////////
|
---|
| 23 |
|
---|
| 24 | void main(void)
|
---|
| 25 | {
|
---|
| 26 | S3D_BONE_TRANSF_STD(matBoneFinal, matBone, boneWgh, boneSubscr);
|
---|
| 27 |
|
---|
| 28 | vec4 posView = matBoneFinal * gl_Vertex;
|
---|
| 29 |
|
---|
| 30 | gl_Position = gl_ProjectionMatrix * posView;
|
---|
| 31 | gl_FrontColor = gl_Color;
|
---|
| 32 | gl_TexCoord[0] = gl_MultiTexCoord0;
|
---|
| 33 |
|
---|
| 34 | }
|
---|
| 35 |
|
---|
| 36 | ///////////////////////////////////////////////////////////////////////////////
|
---|
Note: See
TracBrowser
for help on using the repository browser.