gpuray_glsl
changeset 5:000017955721 tip
fixed the cone normal
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 11 Nov 2014 20:25:59 +0200 |
parents | 2ed3da7dc0bc |
children | |
files | src/cone.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/src/cone.cc Mon Nov 10 01:26:00 2014 +0200 1.2 +++ b/src/cone.cc Tue Nov 11 20:25:59 2014 +0200 1.3 @@ -72,7 +72,7 @@ 1.4 float radius = pt->pos.y * slope; 1.5 pt->normal = Vector3(pt->pos.x, 0.0, pt->pos.z) / radius; 1.6 1.7 - float ny = sin(angle); 1.8 + float ny = -sin(angle); 1.9 float xzlen = sqrt(1.0 - ny * ny); 1.10 pt->normal.x *= xzlen; 1.11 pt->normal.y = ny;