summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmake_map_model.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/make_map_model.rb b/make_map_model.rb
index 388c4ac..fa00619 100755
--- a/make_map_model.rb
+++ b/make_map_model.rb
@@ -18,15 +18,6 @@ ObjImporter.ImportModel(path, reader, brres, "WorldBase", ObjImporter::LightmapT
model = models["WorldBase"]
-alpha_tex = Texture.new
-alpha_bitmap = System::Drawing::Bitmap.new("#{path}/images/alphaBlender.png")
-alpha_tex.images = System::Array[System::Drawing::Bitmap].new([alpha_bitmap])
-alpha_tex.format = TextureFormat.RGB5A3
-brres.get_texture_group.add 'alphaBlender', alpha_tex
-
-# yay
-#model.shapes["World2_PathsPlumbing__World2_PathsPlumbing"].clr_data[0].raw_data = System::Array[Byte].new([255, 255, 255, 128])
-
# move paths into DrawXlu
opa = model.bytecode["DrawOpa"]
if model.bytecode.contains_key("DrawXlu")
@@ -68,20 +59,6 @@ model.materials.each do |kvp|
pix.load_b_p_reg 0x42000000
pix.end
mat.pix_d_l = pix.get_buffer
-
- tc = DisplayListWriter.new
- [0xE2,0xE3,0xE4,0xE5,0xE6,0xE7].each_slice(2) do |first, second|
- tc.load_b_p_reg first << 24
- 3.times { tc.load_b_p_reg second << 24 }
- end
- tc.add_padding 4
- (0xE0..0xE5).each {|bit| tc.load_b_p_reg (bit << 24) | 0x800000}
- tc.load_b_p_reg 0xE688F000
- tc.load_b_p_reg 0xE7800000
- tc.pad_to_size 0x80
- tc.end
- mat.tev_color_d_l = tc.get_buffer
-
end
final_data = BrresWriter.write_file(brres)