mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 23:11:49 +00:00
day-night loop, dynamic skybox, clock on debug panel
This commit is contained in:
parent
4a9a4ddd14
commit
c08c31b0ad
24 changed files with 599 additions and 48 deletions
11
res/shaders/background.glslf
Normal file
11
res/shaders/background.glslf
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#version 330 core
|
||||
|
||||
in vec3 v_coord;
|
||||
out vec4 f_color;
|
||||
|
||||
uniform samplerCube u_cubemap;
|
||||
|
||||
void main(){
|
||||
vec3 dir = normalize(v_coord);
|
||||
f_color = texture(u_cubemap, dir);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue