Source Texture Utility.bcs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. // Specification: VTex
  2. // Written by: Ryan Gregg
  3. // Version: N/A
  4. // Created: April 7, 2004
  5. // Last updated: N/A
  6. Include "Templates.bci"
  7. Variable
  8. {
  9. Name "ValveProject"
  10. Type "Folder"
  11. Optional "True"
  12. Hint "The directory your gameinfo.txt is located in."
  13. }
  14. Batch
  15. {
  16. Name "VTex"
  17. Priority "1"
  18. Links "Source SDK,http://www.valve-erc.com/srcsdk/"
  19. Filter "TGA Files (*.tga)|*.tga"
  20. Stages "VTex"
  21. Template "@echo off\n"_
  22. "set VPROJECT=${ValveProject}\n"_
  23. "${Splash}"_
  24. "\"${StagePath=VTex}\" -nopause ${StageParam=VTex} \"${FileName}.${FileExt}\"\n"
  25. }
  26. //
  27. // VTex
  28. //
  29. Stage
  30. {
  31. Name "VTex"
  32. Title "VTex"
  33. Type "Program"
  34. Filter "VTex (vtex.exe)|vtex.exe"
  35. CheckBox
  36. {
  37. Name "Make Directory"
  38. Bold "True"
  39. Param "-mkdir"
  40. Hint "\tMake the destination directory if it does not exist.\n\n"_
  41. "\tFor example, if you had a .tga in your .../sourcesdk_content/hl2/materialsrc/sample/sample_material.tga folder, -mkdir would create a new directory called \"sample\" in your .../Half-Life 2/hl2/materials directory, if it didn't already exist, and then place the compiled .vtf file in that new location. If the directory already exists, the -mkdir parameter is ignored."
  42. }
  43. CheckBox
  44. {
  45. Name "Quiet"
  46. Param "-quiet"
  47. Hint "\tDon't display any console output."
  48. }
  49. TextBox
  50. {
  51. Name "VMT Parameter"
  52. Param "-vmtparam"
  53. Size "2"
  54. Type "String"
  55. Quote "False"
  56. Hint "\tAdd additional material parameters to the created .vmt file.\n\n"_
  57. "\tIf a .vmt already exists in the same location, any new parameters will not be added. For example, to make a material translucent, you would type the following: \"$translucent 1\" (without quotes).\n"
  58. }
  59. TextBox
  60. {
  61. Name "VMT Parameter"
  62. Param "-vmtparam"
  63. Size "2"
  64. Type "String"
  65. Quote "False"
  66. Hint "\tAdd additional material parameters to the created .vmt file.\n\n"_
  67. "\tIf a .vmt already exists in the same location, any new parameters will not be added. For example, to make a material translucent, you would type the following: \"$translucent 1\" (without quotes).\n"
  68. }
  69. TextBox
  70. {
  71. Name "VMT Parameter"
  72. Param "-vmtparam"
  73. Size "2"
  74. Type "String"
  75. Quote "False"
  76. Hint "\tAdd additional material parameters to the created .vmt file.\n\n"_
  77. "\tIf a .vmt already exists in the same location, any new parameters will not be added. For example, to make a material translucent, you would type the following: \"$translucent 1\" (without quotes).\n"
  78. }
  79. TextBox
  80. {
  81. Name "VMT Parameter"
  82. Param "-vmtparam"
  83. Size "2"
  84. Type "String"
  85. Quote "False"
  86. Hint "\tAdd additional material parameters to the created .vmt file.\n\n"_
  87. "\tIf a .vmt already exists in the same location, any new parameters will not be added. For example, to make a material translucent, you would type the following: \"$translucent 1\" (without quotes).\n"
  88. }
  89. TextBox
  90. {
  91. Name "VMT Parameter"
  92. Param "-vmtparam"
  93. Size "2"
  94. Type "String"
  95. Quote "False"
  96. Hint "\tAdd additional material parameters to the created .vmt file.\n\n"_
  97. "\tIf a .vmt already exists in the same location, any new parameters will not be added. For example, to make a material translucent, you would type the following: \"$translucent 1\" (without quotes).\n"
  98. }
  99. TextBox
  100. {
  101. Name "Custom Shader"
  102. Param "-shader"
  103. Size "2"
  104. Type "String"
  105. Hint "\tHave VTex create a .vmt for the new material with the shader specified.\n\n"_
  106. "\tNot to be used with the Standard Shader option."
  107. }
  108. ComboBox
  109. {
  110. Name "Standard Shader"
  111. Param "-shader"
  112. Size "2"
  113. Default "Lightmapped Generic"
  114. Options "Lightmapped Generic,LightmappedGeneric|Unlit Generic,UnlitGeneric|Vertex Lit Generic,VertexlitGeneric"
  115. Hint "\tHave VTex create a .vmt for the new material with the shader specified.\n\n"_
  116. "\tNot to be used with the Custom Shader option."
  117. }
  118. Space
  119. {
  120. Size "1"
  121. }
  122. TextBox
  123. {
  124. Name "Additional Parameters"
  125. Type "String"
  126. Quote "False"
  127. Size "3"
  128. Hint "\tAdd additional parameters here as you would a command line."
  129. }
  130. }