fix normal_i calculation
This commit is contained in:
parent
cfa2850292
commit
eb0a24b8d4
@ -13,5 +13,5 @@ void main(void)
|
|||||||
{
|
{
|
||||||
gl_Position = projection * modelview * vec4(scale * pos, 1);
|
gl_Position = projection * modelview * vec4(scale * pos, 1);
|
||||||
pos_i = gl_Position.xyz;
|
pos_i = gl_Position.xyz;
|
||||||
normal_i = modelview * vec4(normal, 1);
|
normal_i = modelview * vec4(normal, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user