source: framspy/gui/visual/shaders/vertexShader.glsl @ 1290

Last change on this file since 1290 was 1198, checked in by Maciej Komosinski, 22 months ago

Added simple Python GUI for Framsticks library/server

File size: 466 bytes
Line 
1#version 330
2
3in vec3 position;
4in vec2 textureCoordinates;
5in vec3 normal;
6
7out vec2 pass_textureCoordinates;
8
9uniform mat4 transformationMatrix;
10uniform mat4 projectionMatrix;
11uniform mat4 viewMatrix;
12
13void main(void){
14        vec4 worldPosition = transformationMatrix * vec4(position,1.0);
15        vec4 positionRelativeToCam = viewMatrix * worldPosition;
16        gl_Position = projectionMatrix * positionRelativeToCam;
17        pass_textureCoordinates = textureCoordinates;
18}
Note: See TracBrowser for help on using the repository browser.