summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-06-07 12:09:25 +1000
committerOmniscient <omniscient.oce@gmail.com>2024-06-07 12:09:25 +1000
commit34cfaac69eda7eae258d004e4cafd5a816cf9b67 (patch)
treee7341c20d9f7a0620d9f1f926ce51822f954b5b0 /assets
parent59854f60b761d77cee4095c9ce45062c926dea5a (diff)
drop glsl version
Diffstat (limited to 'assets')
-rw-r--r--assets/shaders/blinn_phong.frag4
-rw-r--r--assets/shaders/blinn_phong.vert4
2 files changed, 4 insertions, 4 deletions
diff --git a/assets/shaders/blinn_phong.frag b/assets/shaders/blinn_phong.frag
index f7c4322..267c71b 100644
--- a/assets/shaders/blinn_phong.frag
+++ b/assets/shaders/blinn_phong.frag
@@ -1,4 +1,4 @@
-#version 410 core
+#version 430 core
out vec4 FragColor;
// A Blinn-Phong material with textures for diffuse and specular
@@ -94,4 +94,4 @@ vec3 CalcPointLight(PointLight light, vec3 normal, vec3 fragPos, vec3 viewDir)
diffuse *= attentuation;
specular *= attentuation;
return (ambient + diffuse + specular);
-} \ No newline at end of file
+}
diff --git a/assets/shaders/blinn_phong.vert b/assets/shaders/blinn_phong.vert
index aefb129..1d2a53e 100644
--- a/assets/shaders/blinn_phong.vert
+++ b/assets/shaders/blinn_phong.vert
@@ -1,4 +1,4 @@
-#version 450 core
+#version 430 core
struct Uniforms {
mat4 model;
@@ -34,4 +34,4 @@ void main() {
// vs_out.FragPosLightSpace = lightSpaceMatrix * vec4(vs_out.FragPos, 1.0);
vs_out.Color = vec4(1.0);
gl_Position = ubo.projection * ubo.view * ubo.model * vec4(inPos, 1.0);
-} \ No newline at end of file
+}