demos/dragon.py
branchpyrit
changeset 98 64638385798a
parent 90 f6a72eb99631
equal deleted inserted replaced
97:2a853d284a6a 98:64638385798a
    23 rt.addLight(light2)
    23 rt.addLight(light2)
    24 
    24 
    25 top.optimize()
    25 top.optimize()
    26 
    26 
    27 sampler = DefaultSampler(800, 600)
    27 sampler = DefaultSampler(800, 600)
       
    28 sampler.setOversample(1)
    28 rt.setSampler(sampler)
    29 rt.setSampler(sampler)
    29 rt.render()
    30 rt.render()
    30 sampler.getPixmap().writePNG('dragon.png')
    31 sampler.getPixmap().writePNG('dragon.png')