 package aerys.minko.render.shader.part.animation
 {
+	import aerys.minko.render.shader.SFloat;
 	import aerys.minko.render.shader.Shader;
-	import aerys.minko.render.shader.SFloat;
 	import aerys.minko.render.shader.part.ShaderPart;
 	import aerys.minko.type.stream.format.VertexComponent;
 	

	 */
	public class VertexAnimationShaderPart extends ShaderPart
	{
		private var _morphingShaderPart : MorphingShaderPart;
		private var _skinningShaderPart : SkinningShaderPart;
		
		public function VertexAnimationShaderPart(main : Shader)
		{
			super(main);
			
			_skinningShaderPart = new SkinningShaderPart(main);
		}
		
		public function getAnimatedVertexPosition() : SFloat

			var vertexNormal : SFloat;
			
			if (meshBindings.propertyExists("morphingEnabled"))
				vertexNormal = _morphing.getMorphedNormal();
			else
				vertexNormal = getVertexAttribute(VertexComponent.NORMAL)
			
			if (meshBindings.propertyExists("skinningMethod"))
				vertexNormal = _skinning.skinNormal(vertexNormal);
			
			return vertexNormal;
		}
