1054a48432
Add blit functions
2020-06-17 16:52:33 -07:00
3311e9ff41
Multiple fixes
2020-06-17 13:57:36 -07:00
136daddf66
Small refactor to remove bounds transform in favor of projector
...
idk just simplifies some things
2020-06-12 17:29:29 -07:00
f0c5a112fe
Remove broken culling code and fix flag switching
2020-06-11 21:58:04 -07:00
4ed65bdf4a
Use bounds to choose projection targets
2020-06-11 21:01:01 -07:00
f195fc4c19
Add culling for offscreen decals
2020-06-11 20:49:13 -07:00
b247e9af4e
Add visible bounding boxes around projection area
2020-06-11 19:59:53 -07:00
090277ecd9
Add size calculation modes
2020-06-11 17:30:31 -07:00
7cc59acb7b
Add slider for edge wear
2020-06-11 16:52:12 -07:00
af72c28046
Better normal map handling for parts with no normals
2020-06-11 14:15:37 -07:00
0d291da580
Fix tile parsing and decal rotation
...
• Decals now respond to rotation and offset tools again
• Fix tile value parsing
• Fix broken normals when projecting on parts with no normal maps
2020-06-10 12:20:47 -07:00
26f44e7c15
Remove some more debug statements
2020-06-09 00:03:00 -07:00
3ac20f0ddb
Update symmetry counterparts when tweakables are adjusted
2020-06-08 20:21:26 -07:00
c4679acd49
Localize flag events
2020-06-08 19:50:33 -07:00
492a7d0317
Add flag selection to flag decals
...
• Add flag selection code blatantly stolen from WBDecals
• Fix attachment of symmetrically attached decals
2020-06-08 19:38:35 -07:00
cbc3996a1f
Rework decal parameters so they dont reset when changing variants
2020-06-08 15:38:36 -07:00
00916575d0
more things
2020-06-08 13:14:25 -07:00
ec5d337b85
Documentation pass
...
nobody will ever read these why am I doing this
2020-06-08 12:17:25 -07:00
10300f7f80
Temporarily remove nonfunctional intersection code
...
Will probably fix at a later date, but its not needed for the plugin to work
2020-06-08 02:16:30 -07:00
0375d25105
Fix tile indexing
2020-06-08 01:56:24 -07:00
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
395a6a5ca9
thing
2020-06-05 22:54:55 -07:00
8a4f1b31a8
Remove failed attempt at a culling fix
2020-06-05 21:36:14 -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
00908c9e13
Get flag module working
2020-06-02 22:45:48 -07:00
33873cacc0
Major refactor, splitting ModuleConformalDecal
2020-06-02 20:36:45 -07:00
ffff9d629c
small tweaks
2020-06-02 19:11:05 -07:00
0ded82f409
Small refactor to reload tweakables on load
2020-06-02 18:26:40 -07:00
41ea08e571
Get decal switching working mostly
2020-06-02 18:07:05 -07:00
d6f0a1f9a7
Black Lives Matter
2020-06-02 17:17:33 -07:00
5268435693
Run config parsing after MM is done running
...
MM is now a hard dependency
2020-06-02 17:14:52 -07:00
4566a3439a
Add manual material property constructors
2020-06-02 17:11:38 -07:00
95e46f7556
Add shader blacklist
...
Add a configurable blacklist of shaders that can be projected onto
2020-06-02 13:46:16 -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
9bf18a7ce4
Revert "Decrement instead of increment queue value"
...
This reverts commit 2f308c3ab6
.
2020-06-01 21:28:01 -07:00
2f308c3ab6
Decrement instead of increment queue value
...
This is a bit more intuitive since newer decals render over older ones
2020-06-01 21:14:41 -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
ed9553d1fd
Fix decal projection being scaled twice
2020-06-01 16:54:07 -07:00
49433588a3
Fix part highlighting and the collider disappearing
...
Completes #2
2020-06-01 15:57:57 -07:00
bb625e768d
Fix transform handling and projection culling
...
Now to figure out why my collider is disappearing...
2020-05-31 23:04:59 -07:00
f8ff034652
Add localization
2020-05-31 18:26:27 -07:00
32cd873dec
Rework bounds culling and colliders
2020-05-30 22:44:44 -07:00
90adfbd80a
Add test config and get the mod almost working
2020-05-30 17:03:14 -07:00
60234cbf7c
First compile
2020-05-30 14:24:31 -07:00
36afcab63c
Documentation and cleanup
2020-05-30 13:46:03 -07:00
64ae41a377
Add projection and loading functionality
...
ModuleConformalDecal is now, theoretically, sorta working
2020-05-30 13:36:10 -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
d7cb233d0f
Use all cameras and rely on layers for culling
...
Also cleanup some stuff
2020-05-29 21:15:33 -07:00
c4d7373aa5
Add projection logic
2020-05-29 21:02:58 -07:00
788a37a851
Update project file with OrientedBounds
2020-05-29 19:04:38 -07:00
835344eac9
OrientedBounds cleanup
2020-05-29 19:03:40 -07:00
feb2eb3c4a
Add struct for OrientedBounds
...
Add OrientedBounds struct with functions for testing intersection with other OrientedBounds
2020-05-29 02:17:49 -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
38c1838a22
Add parser for material properties
2020-05-27 15:19:46 -07:00
b933e33f0f
Remove redundant type identifiers
2020-05-26 23:08:38 -07:00
6b04f593b5
Small refactor
2020-05-26 23:05:07 -07:00
d524e64cd3
Begin writing material data parsing code
2020-05-26 23:04:19 -07:00
8ff097b94d
Setup C# project
2020-05-25 20:42:24 -07:00