make attributes for shadow maps and depth
This commit is contained in:
parent
867100d151
commit
fb004f5dcc
|
@ -8,6 +8,7 @@ import arm.material.make_inst as make_inst
|
||||||
import arm.material.make_tess as make_tess
|
import arm.material.make_tess as make_tess
|
||||||
import arm.material.make_particle as make_particle
|
import arm.material.make_particle as make_particle
|
||||||
import arm.material.make_finalize as make_finalize
|
import arm.material.make_finalize as make_finalize
|
||||||
|
import arm.material.make_morph_target as make_morph_target
|
||||||
import arm.assets as assets
|
import arm.assets as assets
|
||||||
import arm.utils
|
import arm.utils
|
||||||
|
|
||||||
|
@ -51,6 +52,9 @@ def make(context_id, rpasses, shadowmap=False):
|
||||||
if parse_opacity:
|
if parse_opacity:
|
||||||
frag.write('float opacity;')
|
frag.write('float opacity;')
|
||||||
|
|
||||||
|
if(con_depth).is_elem('morph'):
|
||||||
|
make_morph_target.morph_pos(vert)
|
||||||
|
|
||||||
if con_depth.is_elem('bone'):
|
if con_depth.is_elem('bone'):
|
||||||
make_skin.skin_pos(vert)
|
make_skin.skin_pos(vert)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue