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 |
|
---|
3 | in vec3 position;
|
---|
4 | in vec2 textureCoordinates;
|
---|
5 | in vec3 normal;
|
---|
6 |
|
---|
7 | out vec2 pass_textureCoordinates;
|
---|
8 |
|
---|
9 | uniform mat4 transformationMatrix;
|
---|
10 | uniform mat4 projectionMatrix;
|
---|
11 | uniform mat4 viewMatrix;
|
---|
12 |
|
---|
13 | void 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.