mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
preload textures
This commit is contained in:
parent
d0ef5b51ff
commit
27cfbbd284
@ -127,6 +127,13 @@ class Transitions:
|
|||||||
from black to transparent. When the color lerp is finished, it
|
from black to transparent. When the color lerp is finished, it
|
||||||
parents the fade polygon to hidden.
|
parents the fade polygon to hidden.
|
||||||
"""
|
"""
|
||||||
|
gsg = base.win.getGsg()
|
||||||
|
if gsg:
|
||||||
|
# If we're about to fade in from black, go ahead and
|
||||||
|
# preload all the textures etc.
|
||||||
|
render.prepareScene(gsg)
|
||||||
|
render2d.prepareScene(gsg)
|
||||||
|
|
||||||
if (t == 0):
|
if (t == 0):
|
||||||
# Fade in immediately with no lerp
|
# Fade in immediately with no lerp
|
||||||
#print "transitiosn: fadeIn 0.0"
|
#print "transitiosn: fadeIn 0.0"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user