From a40a52ab3c827ff08f502f8163358d0faacf9b13 Mon Sep 17 00:00:00 2001 From: Omni Date: Sat, 22 Jun 2024 16:23:34 +1000 Subject: add layout location tags to vertex attributes in pbr_params --- assets/shaders/pbr_params.frag | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'assets/shaders/pbr_params.frag') diff --git a/assets/shaders/pbr_params.frag b/assets/shaders/pbr_params.frag index ae4c1d2..7dbdc9d 100644 --- a/assets/shaders/pbr_params.frag +++ b/assets/shaders/pbr_params.frag @@ -2,9 +2,9 @@ out vec4 FragColor; -in vec3 fragWorldPos; -in vec3 fragNormal; -in vec2 fragTexCoords; +layout(location = 0) in vec3 fragWorldPos; +layout(location = 1) in vec3 fragNormal; +layout(location = 2) in vec2 fragTexCoords; struct PointLight { vec4 position; @@ -82,7 +82,7 @@ void main() { FragColor = vec4(color, 1.0); // FragColor = vec4(scene.pointLights[0].position); - // FragColor = vec4(fragNormal, 1.0); + //FragColor = vec4(fragNormal, 1.0); // FragColor = vec4(pbr.metallic, pbr.roughness, pbr.ao, 1.0); // FragColor = scene.viewPos; } -- cgit v1.2.3-70-g09d2