diff --git a/test/console3D.nas b/test/console3D.nas
index 7259dd7..9129029 100644
--- a/test/console3D.nas
+++ b/test/console3D.nas
@@ -136,7 +136,7 @@ var plane=func(ro,rd,p,w) {
var main=func(frame) {
var height=15*2;
- var width=int(height*1600/900)*2;
+ var width=int(height*1/0.618)*2;
var aspect=width/height;
var pixelAspect=11.0/24.0;
@@ -147,15 +147,21 @@ var main=func(frame) {
var screen=[];
setsize(screen,width*height);
+ var light=vec3norm([-0.5,0.5,-1.0]);
+ var spherePos=[0,3,0];
+ var vec2_2_2=[2,2];
+ var vec2_1_1=[1,1];
+ var vec3_000=[0,0,0];
+ var vec3_00n1=[0,0,-1];
+ var vec3_111=[1,1,1];
+
print("\e[2J");
var stamp=maketimestamp();
for(var t=0;t0){
var itPoint=vec3add(vec3sub(ro,spherePos),vec3mul(rd,[intersection[0],intersection[0],intersection[0]]));
- minIt= intersection[0];
+ minIt=intersection[0];
n=vec3norm(itPoint);
}
var boxN=[0,0,0];
- intersection=box(ro,rd,[1,1,1],boxN);
+ intersection=box(ro,rd,vec3_111,boxN);
if(intersection[0]>0 and intersection[0]0 and intersection[0]