glslify / glsl-ggx

glsl ggx lighting model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Halfvec computation

brainsandwich opened this issue · comments

Hi,
First of all, thanks for sharing your ggx implementation !

There seems to be an error in your halfvec computation.
You've written it as the substraction of the view by the lightdir (vec3 H = normalize(L - V);) but it should the addition of the two.

Regards