Commit Graph

5 Commits (da1fbf0f2ab5cddab70c1cdde88095eb1791c392)

Author SHA1 Message Date
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 0ef46a3182 More work trying to fix part icons 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 6c20675a99 Get flag module working 4 years ago
Andrew Cassidy 6a5604911d Major refactor, splitting ModuleConformalDecal 4 years ago