equal
deleted
inserted
replaced
141 render_buffer = (Float *) malloc(w*h*3*sizeof(Float)); |
141 render_buffer = (Float *) malloc(w*h*3*sizeof(Float)); |
142 |
142 |
143 rt.setThreads(1); |
143 rt.setThreads(1); |
144 rt.setMaxDepth(3); |
144 rt.setMaxDepth(3); |
145 |
145 |
146 Kdtree top; |
146 KdTree top; |
147 rt.setTop(&top); |
147 rt.setTop(&top); |
148 |
148 |
149 Light light1(Vector3(-5.0, 2.0, 8.0), Colour(0.9, 0.3, 0.6)); |
149 Light light1(Vector3(-5.0, 2.0, 8.0), Colour(0.9, 0.3, 0.6)); |
150 light1.castShadows(false); |
150 light1.castShadows(false); |
151 rt.addlight(&light1); |
151 rt.addlight(&light1); |