Browse Source

implement getShaderInputNames for NullDriver

Nicolas Cannasse 9 years ago
parent
commit
331b4e0d38
1 changed files with 5 additions and 2 deletions
  1. 5 2
      h3d/impl/NullDriver.hx

+ 5 - 2
h3d/impl/NullDriver.hx

@@ -43,8 +43,11 @@ class NullDriver extends Driver {
 	}
 
 	override function getShaderInputNames() : Array<String> {
-		throw "TODO:getShaderInputNames";
-		return null;
+		var names = [];
+		for( v in cur.vertex.data.vars )
+			if( v.kind == Input )
+				names.push(v.name);
+		return names;
 	}
 
 	override function allocTexture( t : h3d.mat.Texture ) : Texture {