Andrew Cassidy
b09695d602
Use bounds to choose projection targets
4 years ago
Andrew Cassidy
3ab1414a19
Better normal map handling for parts with no normals
4 years ago
Andrew Cassidy
e2f54cb4f7
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
4 years ago
Andrew Cassidy
b3d817e0c3
more things
4 years ago
Andrew Cassidy
de2f42a09f
Temporarily remove nonfunctional intersection code
...
Will probably fix at a later date, but its not needed for the plugin to work
4 years ago
Andrew Cassidy
79bdc03c4b
Add tiling index and size values, for easier tiling
...
Also API changes made as I chased a bug
4 years ago
Andrew Cassidy
3637f84f5c
Remove failed attempt at a culling fix
4 years ago
Andrew Cassidy
da1fbf0f2a
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
4 years ago
Andrew Cassidy
e9c8f3dafb
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!)
4 years ago
Andrew Cassidy
5652f0dda1
small tweaks
4 years ago
Andrew Cassidy
eda068cd66
Get decal switching working mostly
4 years ago
Andrew Cassidy
c72e20bd2a
Black Lives Matter
4 years ago
Andrew Cassidy
7e520f97ca
Refactor material parsing and loading
...
This should hopefully pave the way for usable module switching using B9PS
4 years ago
Andrew Cassidy
d54887414f
Fix part highlighting and the collider disappearing
...
Completes #2
4 years ago
Andrew Cassidy
91a6613707
Fix transform handling and projection culling
...
Now to figure out why my collider is disappearing...
4 years ago
Andrew Cassidy
8a056f5c72
Rework bounds culling and colliders
4 years ago
Andrew Cassidy
01e046a7f1
Add test config and get the mod almost working
4 years ago
Andrew Cassidy
8cd456f16e
Documentation and cleanup
4 years ago
Andrew Cassidy
e504936896
Add projection and loading functionality
...
ModuleConformalDecal is now, theoretically, sorta working
4 years ago
Andrew Cassidy
995c9120e5
Add enable/disable logic to ModuleConformingDecal
4 years ago
Andrew Cassidy
d5038e19bc
Use all cameras and rely on layers for culling
...
Also cleanup some stuff
4 years ago
Andrew Cassidy
1287e729eb
Add projection logic
4 years ago