Commit 5563ae40 authored by Shu's avatar Shu 🍠
Browse files

Galaxybox (cubemap)

parent c0e84d67
......@@ -36,7 +36,8 @@
- Eye adaptation
- [ ] Post processing
- https://learnopengl.com/Advanced-OpenGL/Anti-Aliasing
- [ ] Skybox
- [x] Skybox
- [ ] Environment mapping
- [ ] Cascaded shadow maps
- [ ] RayCast
......
#version 330 core
// Ouput data
layout(location = 0) out vec4 color;
uniform samplerCube Texture;
in vec3 UV;
void main(){
color = texture(Texture, UV);
}
\ No newline at end of file
#version 330 core
layout (location = 0) in vec3 Position_modelspace;
out vec3 UV;
uniform mat4 Projection;
uniform mat4 View;
void main()
{
UV = Position_modelspace;
gl_Position = (Projection * View * vec4(Position_modelspace, 1.0)).xyww;
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment