Move in morph target texture links

This commit is contained in:
Lubos Lenco 2021-11-06 12:34:03 +01:00
parent 263d5853a5
commit f581e91ba9
1 changed files with 8 additions and 0 deletions

View File

@ -34,6 +34,14 @@ class Uniforms {
return armory.data.ConstData.ltcMagTex;
}
#end
#if arm_morph_target
case "_morphDataPos": {
return cast(object, iron.object.MeshObject).morphTarget.morphDataPos;
}
case "_morphDataNor": {
return cast(object, iron.object.MeshObject).morphTarget.morphDataNor;
}
#end
}
var target = iron.RenderPath.active.renderTargets.get(link.endsWith("_depth") ? link.substr(0, link.length - 6) : link);