diff options
| author | epoch <epoch@hacking.allowed.org> | 2020-01-27 17:56:16 -0600 |
|---|---|---|
| committer | epoch <epoch@hacking.allowed.org> | 2020-01-27 17:56:16 -0600 |
| commit | f33d7bea0074fb62bc437a2b4ea0c86e15874a42 (patch) | |
| tree | 0a3fde0016e32eef72a1f09184cb027052b9c186 | |
| parent | 1fcabaeb97d6e62c603a8a130fc17922566e262e (diff) | |
| download | hackvr-f33d7bea0074fb62bc437a2b4ea0c86e15874a42.tar.gz hackvr-f33d7bea0074fb62bc437a2b4ea0c86e15874a42.zip | |
added a comment that explains what some regex does
| -rwxr-xr-x | bin/obj2hackvr.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/obj2hackvr.pl b/bin/obj2hackvr.pl index 3639750..7a60cd0 100755 --- a/bin/obj2hackvr.pl +++ b/bin/obj2hackvr.pl @@ -49,6 +49,7 @@ while(<FILE>) { #convert to triangles foreach $tmp (@faces) { @points=split(/ /,$tmp); +## this map is to split off the vertex texture and vertex normal parts of the face. @points = map { $_ =~ s/\/.+$//g; $_; } @points; # print @points; for($i=2;$i<(@points);$i++) { |
