diff options
author | Omniscient <omniscient.oce@gmail.com> | 2024-06-07 12:09:25 +1000 |
---|---|---|
committer | Omniscient <omniscient.oce@gmail.com> | 2024-06-07 12:09:25 +1000 |
commit | 34cfaac69eda7eae258d004e4cafd5a816cf9b67 (patch) | |
tree | e7341c20d9f7a0620d9f1f926ce51822f954b5b0 /assets | |
parent | 59854f60b761d77cee4095c9ce45062c926dea5a (diff) |
drop glsl version
Diffstat (limited to 'assets')
-rw-r--r-- | assets/shaders/blinn_phong.frag | 4 | ||||
-rw-r--r-- | assets/shaders/blinn_phong.vert | 4 |
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 +} |