From 34cfaac69eda7eae258d004e4cafd5a816cf9b67 Mon Sep 17 00:00:00 2001 From: Omniscient Date: Fri, 7 Jun 2024 12:09:25 +1000 Subject: drop glsl version --- assets/shaders/blinn_phong.frag | 4 ++-- assets/shaders/blinn_phong.vert | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'assets/shaders') 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 +} -- cgit v1.2.3-70-g09d2