diff options
Diffstat (limited to 'frag.glsl')
-rw-r--r-- | frag.glsl | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,8 +1,10 @@ -// Copyright (C) 2018 Tomasz Kramkowski <tk@the-tk.com> -// SPDX-License-Identifier: MIT +/* + * Copyright (C) 2018 Tomasz Kramkowski <tk@the-tk.com> + * SPDX-License-Identifier: MIT + */ #version 330 core out vec4 color; -in vec3 vnorm; +in vec3 fnorm; in vec3 fpos; in vec2 fuv; in vec3 lipos; @@ -16,7 +18,7 @@ void main() float amb = 0.1; - vec3 norm = normalize(vnorm); + vec3 norm = normalize(fnorm); vec3 lidir = normalize(lipos - fpos); float dif = max(dot(norm, lidir), 0.0); |