mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 15:31:49 +00:00
refactor shaders
This commit is contained in:
parent
36e5ff2472
commit
30a0b81680
9 changed files with 128 additions and 88 deletions
|
|
@ -3,11 +3,11 @@ layout (location = 0) out vec4 f_color;
|
|||
layout (location = 1) out vec4 f_position;
|
||||
layout (location = 2) out vec4 f_normal;
|
||||
|
||||
uniform samplerCube u_cubemap;
|
||||
uniform samplerCube u_skybox;
|
||||
|
||||
void main(){
|
||||
vec3 dir = normalize(v_coord);
|
||||
f_position = vec4(0.0, 0.0, 0.0, 0.0);
|
||||
f_normal = vec4(0.0);
|
||||
f_color = texture(u_cubemap, dir);
|
||||
f_color = texture(u_skybox, dir);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue