示例#1
0
def setLight(light=0):
    keys = ["ambient", "diffuse", "specular", "position"]
    tgt = "render/light%s" % light
    localcopy = {}
    localcopy.update(GD.cfg[tgt])
    if askConfigPreferences(keys, store=localcopy):
        GD.cfg[tgt] = localcopy
        draw.smooth()
示例#2
0
def setLight(light=0):
    keys = [ 'ambient', 'diffuse', 'specular', 'position' ]
    tgt = 'render/light%s'%light
    localcopy = {}
    localcopy.update(GD.cfg[tgt])
    if askConfigPreferences(keys,store=localcopy):
        GD.cfg[tgt] = localcopy
        draw.smooth()
示例#3
0
def setRender():
    if askConfigPreferences(["ambient", "specular", "emission", "shininess"], "render"):
        draw.smooth()
示例#4
0
def setRender():
    if askConfigPreferences(['ambient', 'specular', 'emission', 'shininess'],'render'):
        draw.smooth()
示例#5
0
def prefLight1():
    prefLight(1)
    draw.smooth()
示例#6
0
def prefLight0():
    prefLight(0)
    draw.smooth()