First Commit
This commit is contained in:
commit
5ccf998834
34 changed files with 1608 additions and 0 deletions
8
VBO/res/shaders/main.frag
Normal file
8
VBO/res/shaders/main.frag
Normal file
|
@ -0,0 +1,8 @@
|
|||
#version 330
|
||||
out vec4 fragColor;
|
||||
|
||||
in vec4 color;
|
||||
|
||||
void main(void){
|
||||
fragColor = color;
|
||||
}
|
11
VBO/res/shaders/main.vert
Normal file
11
VBO/res/shaders/main.vert
Normal file
|
@ -0,0 +1,11 @@
|
|||
#version 330
|
||||
|
||||
layout (location = 0) in vec3 in_position;
|
||||
layout (location = 1) in vec4 in_color;
|
||||
|
||||
out vec4 color;
|
||||
|
||||
void main(void){
|
||||
color = in_color;
|
||||
gl_Position = ftransform();
|
||||
}
|
10
VBO/res/shaders/skybox.frag
Normal file
10
VBO/res/shaders/skybox.frag
Normal file
|
@ -0,0 +1,10 @@
|
|||
#version 330
|
||||
out vec4 fragColor;
|
||||
uniform samplerCube cubeMap;
|
||||
|
||||
in vec3 position;
|
||||
|
||||
|
||||
void main(void){
|
||||
fragColor = texture(cubeMap, position);
|
||||
}
|
10
VBO/res/shaders/skybox.vert
Normal file
10
VBO/res/shaders/skybox.vert
Normal file
|
@ -0,0 +1,10 @@
|
|||
#version 330
|
||||
|
||||
layout (location = 0) in vec3 in_position;
|
||||
|
||||
out vec3 position;
|
||||
|
||||
void main(void){
|
||||
position = gl_Vertex.xyz;
|
||||
gl_Position = ftransform();
|
||||
}
|
BIN
VBO/res/tex/cubemap/back.jpg
Normal file
BIN
VBO/res/tex/cubemap/back.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 41 KiB |
BIN
VBO/res/tex/cubemap/bottom.jpg
Normal file
BIN
VBO/res/tex/cubemap/bottom.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 62 KiB |
BIN
VBO/res/tex/cubemap/front.jpg
Normal file
BIN
VBO/res/tex/cubemap/front.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
BIN
VBO/res/tex/cubemap/left.jpg
Normal file
BIN
VBO/res/tex/cubemap/left.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
BIN
VBO/res/tex/cubemap/right.jpg
Normal file
BIN
VBO/res/tex/cubemap/right.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
BIN
VBO/res/tex/cubemap/top.jpg
Normal file
BIN
VBO/res/tex/cubemap/top.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
Reference in a new issue