Created
August 19, 2015 00:41
-
-
Save AndrewRayCode/c3ec0751757a634caebb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| precision highp float; | |
| precision highp int; | |
| #define VERTEX_TEXTURES | |
| #define GAMMA_FACTOR 2 | |
| #define MAX_DIR_LIGHTS 0 | |
| #define MAX_POINT_LIGHTS 0 | |
| #define MAX_SPOT_LIGHTS 0 | |
| #define MAX_HEMI_LIGHTS 0 | |
| #define MAX_SHADOWS 0 | |
| #define MAX_BONES 251 | |
| uniform mat4 modelMatrix; | |
| uniform mat4 modelViewMatrix; | |
| uniform mat4 projectionMatrix; | |
| uniform mat4 viewMatrix; | |
| uniform mat3 normalMatrix; | |
| uniform vec3 cameraPosition; | |
| attribute vec3 position; | |
| attribute vec3 normal; | |
| attribute vec2 uv; | |
| attribute vec2 uv2; | |
| #ifdef USE_COLOR | |
| attribute vec3 color; | |
| #endif | |
| #ifdef USE_MORPHTARGETS | |
| attribute vec3 morphTarget0; | |
| attribute vec3 morphTarget1; | |
| attribute vec3 morphTarget2; | |
| attribute vec3 morphTarget3; | |
| #ifdef USE_MORPHNORMALS | |
| attribute vec3 morphNormal0; | |
| attribute vec3 morphNormal1; | |
| attribute vec3 morphNormal2; | |
| attribute vec3 morphNormal3; | |
| #else | |
| attribute vec3 morphTarget4; | |
| attribute vec3 morphTarget5; | |
| attribute vec3 morphTarget6; | |
| attribute vec3 morphTarget7; | |
| #endif | |
| #endif | |
| #ifdef USE_SKINNING | |
| attribute vec4 skinIndex; | |
| attribute vec4 skinWeight; | |
| #endif | |
| void main() { | |
| gl_Position = vec4( position, 1.0 ); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment