equal
deleted
inserted
replaced
15 if (ly != 0.0) |
15 if (ly != 0.0) |
16 light.pos.y += ly; |
16 light.pos.y += ly; |
17 if (lz != 0.0) |
17 if (lz != 0.0) |
18 light.pos.z += lz; |
18 light.pos.z += lz; |
19 if (cf != 0.0) |
19 if (cf != 0.0) |
20 cam.F += cf; |
20 cam.setF(cam.getF() + cf); |
21 } |
21 } |
22 |
22 |
23 void key_callback(int key, int down) |
23 void key_callback(int key, int down) |
24 { |
24 { |
25 switch (key) |
25 switch (key) |
146 sampler.setSubsample(1); |
146 sampler.setSubsample(1); |
147 rt.setSampler(&sampler); |
147 rt.setSampler(&sampler); |
148 rt.render(); |
148 rt.render(); |
149 sampler.getPixmap().writePNG("textures.png"); |
149 sampler.getPixmap().writePNG("textures.png"); |
150 } |
150 } |
|
151 |
|
152 return 0; |
151 } |
153 } |