diff options
| author | hachem <im@hachem.wtf> | 2026-08-19 02:02:20 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-19 02:02:20 +0200 |
| commit | f7e05555fb4ff6d8e51bdb5734db4dab1841d593 (patch) | |
| tree | 353d350b19da7b84ca11e5801d33a921407a963e /Assets/Shaders/Skybox.glsl | |
| parent | 5c5fc10d8938fd2da1922f01c638d42e70eb1ab1 (diff) | |
[feat]: migrate to slang from glsl
Diffstat (limited to 'Assets/Shaders/Skybox.glsl')
| -rw-r--r-- | Assets/Shaders/Skybox.glsl | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/Assets/Shaders/Skybox.glsl b/Assets/Shaders/Skybox.glsl deleted file mode 100644 index 654bed1..0000000 --- a/Assets/Shaders/Skybox.glsl +++ /dev/null @@ -1,31 +0,0 @@ -#type vertex - -#version 330 core - -layout (location = 0) in vec3 aPos; - -out vec3 TexCoords; - -uniform mat4 u_Projection; -uniform mat4 u_View; - -void main() -{ - TexCoords = aPos; - vec4 pos = u_Projection * u_View * vec4(aPos, 1.0); - gl_Position = pos.xyww; -} - -#type fragment - -#version 330 core - -out vec4 FragColor; -in vec3 TexCoords; - -uniform samplerCube u_Skybox; - -void main() -{ - FragColor = texture(u_Skybox, TexCoords); -} |
