Commit Graph

21 Commits

Author SHA1 Message Date
a19e225c58
Debug statement cleanup and fix icon creation 2020-06-07 19:52:17 -07:00
17ab58dc17
Add tiling index and size values, for easier tiling
Also API changes made as I chased a bug
2020-06-07 19:39:09 -07:00
a9f0892f46
Refactor yet again and add autotiling 2020-06-06 13:20:50 -07:00
7105f08a3c
Some cleanup of debug statements 2020-06-06 12:33:51 -07:00
e6372b2703
Destroy materials and properties when MPC is destroyed 2020-06-06 11:28:28 -07:00
1da77a631e
Fix material creation 2020-06-06 01:03:55 -07:00
6f8023b23d
Fix scaling issues when part is created
• KSP rescales the model object back to 1,1,1 on start, so don't use that for the model that gets scaled
• Some refactoring to consolidate property IDs
• rename some classes because I am indecisive
• Add and Get methods for MaterialPropertyCollection
• Make an attempt at a scale culling fix
2020-06-05 21:29:57 -07:00
628848cf7d
More work trying to fix part icons 2020-06-05 00:29:23 -07:00
22150574df
Big refactor to enable preview materials
• add shader variants for decal previewing
• start to add code for part icon
• refactor material properties to be serializable
todo:
• fix decal preview scale (need to call UpdateScale on detached state)
• fix texture preview in part icon
• adjust culling per-object when rendering (turns out cull and ztest values are used by unity at the render time, not by the shader itself, so they can be adjusted in material property blocks!)
2020-06-04 00:12:09 -07:00
33873cacc0
Major refactor, splitting ModuleConformalDecal 2020-06-02 20:36:45 -07:00
41ea08e571
Get decal switching working mostly 2020-06-02 18:07:05 -07:00
012104e193
Refactor material parsing and loading
This should hopefully pave the way for usable module switching using B9PS
2020-06-02 00:53:17 -07:00
c1b34d21a4
Make material handling more intelligent and add incrementing queue 2020-06-01 21:09:14 -07:00
921a159262
Make range and adjustability of tweakables configurable 2020-06-01 17:48:53 -07:00
90adfbd80a
Add test config and get the mod almost working 2020-05-30 17:03:14 -07:00
1332452d13
Print parsing errors as exceptions 2020-05-30 00:16:40 -07:00
b9e0c7fc1c
Add enable/disable logic to ModuleConformingDecal 2020-05-29 23:26:33 -07:00
c4d7373aa5
Add projection logic 2020-05-29 21:02:58 -07:00
6cd703e1d0
Documentation and logging 2020-05-27 15:49:17 -07:00
deb9d07055
Cleanup and check if material should inherit base normals 2020-05-27 15:43:23 -07:00
a3820a7f4d
Rename to reflect behavior instead of copying Blowfish 2020-05-27 15:31:56 -07:00