summaryrefslogtreecommitdiff
path: root/assets/shaders/blinn_phong.frag
diff options
context:
space:
mode:
authorOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-04-07 13:50:40 +1000
committerOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-04-07 13:50:40 +1000
commit42924fe7b32e93bf55ce034467ceb52e0436c303 (patch)
treefbdf14de2bab718cadb6492d3774d33a0f50ff2f /assets/shaders/blinn_phong.frag
parentd9f9479694d8a4d74822a876516282329db5ea3d (diff)
visualising bone indices
Diffstat (limited to 'assets/shaders/blinn_phong.frag')
-rw-r--r--assets/shaders/blinn_phong.frag4
1 files changed, 3 insertions, 1 deletions
diff --git a/assets/shaders/blinn_phong.frag b/assets/shaders/blinn_phong.frag
index 095b19a..adcc53e 100644
--- a/assets/shaders/blinn_phong.frag
+++ b/assets/shaders/blinn_phong.frag
@@ -33,6 +33,7 @@ in VS_OUT {
vec3 Normal;
vec2 TexCoords;
vec4 FragPosLightSpace;
+ vec4 Color;
} fs_in;
// --- Uniforms
@@ -55,7 +56,8 @@ void main() {
result += CalcPointLight(pointLights[i], norm, fs_in.FragPos, viewDir);
}
- FragColor = vec4(result, 1.0);
+ // FragColor = vec4(result, 1.0);
+ FragColor = fs_in.Color + 0.5;
}
vec3 CalcDirLight(DirLight light, vec3 normal, vec3 viewDir)