class Shader2D extends format.hxsl.Shader {
  static public var id:String = "2DShader";
  static var SRC = {
    var input : {
      pos:Float3,
    };
    function vertex( mpos:M44,
                     mproj:M44,
                     origin:Float4 ) {
      out = origin * mpos * mproj + [ pos.x, pos.y, pos.z, 0 ];
    }
    function fragment( color:Float3,
                       alpha:Float ) {
      out = [ color.x, color.y, color.z, alpha ];
    }
  }
}
