Hi,
The fragment program you are using was made for 2D textures, it will not work with cubemap textures. You can use the
node.texblend command to get the blending to work. Here is a sample script:
Code:
import viz
viz.go()
dome = viz.add('skydome.dlc')
tex1 = viz.add(viz.ENVIRONMENT_MAP,'sky.jpg')
tex2 = viz.add(viz.ENVIRONMENT_MAP,'townhall_L.jpg')
dome.texture(tex1)
dome.texture(tex2,unit=1)
dome.texblend(0,unit=1)
slider = viz.addSlider(pos=(0.5,0.1,0))
vizact.onslider(slider,dome.texblend,unit=1)