/src/aerys/minko/render/shader/part/animation/MorphingShaderPart.as
https://bitbucket.org/HopeSky/mars_nd2d · ActionScript · 34 lines · 26 code · 4 blank · 4 comment · 0 complexity · f299cb94983a4f22cc5df381bb1573e9 MD5 · raw file
- package aerys.minko.render.shader.part.animation
- {
- import aerys.minko.render.shader.SFloat;
- import aerys.minko.render.shader.Shader;
- import aerys.minko.render.shader.part.ShaderPart;
- import aerys.minko.render.geometry.stream.format.VertexComponent;
-
- /**
- * The shader part to handle morphing vertex animations.
- * @author Romain Gilliotte
- */
- public class MorphingShaderPart extends ShaderPart
- {
- public function MorphingShaderPart(main:Shader)
- {
- super(main);
- }
-
- public function getMorphedPosition() : SFloat
- {
- return getVertexAttribute(VertexComponent.XYZ);
- }
-
- public function getMorphedNormal() : SFloat
- {
- return getVertexAttribute(VertexComponent.NORMAL);
- }
-
- public function getMorphedTangent() : SFloat
- {
- return getVertexAttribute(VertexComponent.TANGENT);
- }
- }
- }