Poodletooth-iLand/toontown/safezone/SnowUtil.py

10 lines
296 B
Python
Raw Normal View History

2015-05-25 04:31:46 -05:00
from toontown.battle import BattleParticles
def createSnow(geom):
snow = BattleParticles.loadParticleFile('snowdisk.ptf')
snow.setPos(0, 0, 5)
snowRender = geom.attachNewNode('snowRender')
snowRender.setDepthWrite(0)
snowRender.setBin('fixed', 1)
return snow, snowRender