Pages: [1]
  Print  
Author Topic: Help with a shader generation script.  (Read 2369 times)
Neon_Knight
In the year 3000
***

Cakes 49
Posts: 3653


Trickster God.


« on: July 31, 2016, 08:40:19 am »

I'm trying to write a batch script (I'll later do a .sh version) which takes a file where all the shaders are stored, and splits it into several separated files based on shader folder (i.e. textures/acc_dm3/comptop -> tex-acc_dm3.shader). I have already managed to merge all of the .shader files into a single file (allshaders.original), but I need to split this file into smaller, separate ones using that criteria. Any ideas?

P.S: Also, aside of the file splitting, I need to format these filenames in such a way that they reflect where they come from (i.e. textures/acc_dm3 -> textures-acc_dm3.shader)
« Last Edit: July 31, 2016, 10:26:37 am by Neon_Knight » Logged


"Level Designers are 1 part architect, 1 part artist, 1 part game designer, and 1 part beta tester!" Cliff Bleszinski
Want to contribute? Read this.
Pages: [1]
  Print  
 
Jump to: