diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2018-05-02 21:39:30 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2018-05-02 21:39:30 +0100 |
commit | 362f70b04da8f8e9c0c159527bce7da65591c260 (patch) | |
tree | 4547bf3ad23c663b4cae20a56560aab235bd03c1 /frag.glsl | |
parent | 0ce30b0e09621694430e3afe25c8209b147064de (diff) | |
download | faqe-362f70b04da8f8e9c0c159527bce7da65591c260.tar.gz faqe-362f70b04da8f8e9c0c159527bce7da65591c260.tar.xz faqe-362f70b04da8f8e9c0c159527bce7da65591c260.zip |
Cleanup: License headers, spacing, naming
Rename vnorm to fnorm (fragment normal).
Change shader license headers to C++ style comments.
Fix spacing for PI define in faqe.c.
Add missing license headers.
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); |