summaryrefslogtreecommitdiff
path: root/assets/shaders/pbr_params.frag
diff options
context:
space:
mode:
Diffstat (limited to 'assets/shaders/pbr_params.frag')
-rw-r--r--assets/shaders/pbr_params.frag8
1 files changed, 4 insertions, 4 deletions
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;
}