diff options
author | papush! | 2021-01-02 17:45:42 +0100 |
---|---|---|
committer | papush! | 2021-01-02 17:45:42 +0100 |
commit | 8ad1cf1b89b8acae55e36d6bd4562dffd1bcc714 (patch) | |
tree | 02c4a50e19670489a63cd80f1ca1040a2f2cb0ab /shaders/skybox.frag | |
parent | dafdc38f1631f43d94803b0711657187ab58dedd (diff) |
target openglES 2 (with vao ext)
Diffstat (limited to 'shaders/skybox.frag')
-rw-r--r-- | shaders/skybox.frag | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/shaders/skybox.frag b/shaders/skybox.frag index f5f8edb..e056670 100644 --- a/shaders/skybox.frag +++ b/shaders/skybox.frag @@ -1,23 +1,8 @@ -#version 330 core - -// in vec3 tex_coord; - -// out vec4 final_col; - -// uniform samplerCube skybox; - -// void main() { -// // final_col = texture(skybox, tex_coord); -// final_col = vec4(0, 0, 0, 1); -// } - -in vec3 tex_coords; - -out vec4 final_col; +varying vec3 tex_coords; uniform samplerCube tex; void main() { - final_col = texture(tex, tex_coords); + gl_FragColor = textureCube(tex, tex_coords); // final_col = vec4(1, 0, 1, 1); } |