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 | @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 | vec4 posView = matBoneFinal * gl_Vertex;
|
---|
28 |
|
---|
29 | gl_Position = gl_ProjectionMatrix * posView;
|
---|
30 | gl_TexCoord[0] = gl_Position;
|
---|
31 | }
|
---|
32 |
|
---|
33 | ///////////////////////////////////////////////////////////////////////////////
|
---|
Note: See
TracBrowser
for help on using the repository browser.