Commit Graph

9 Commits (60764405ba725b8a1e7447a435fd611a4eafc917)

Author SHA1 Message Date
Andrew Cassidy 1ad6a1fa50 Disable projection onto decal shaders 4 years ago
Andrew Cassidy 8acf17f189 Shader formatting 4 years ago
Andrew Cassidy 2af192966f fix cutoff value on shaders 4 years ago
Andrew Cassidy 2cae31b20f Fix icon color when disabled in VAB menu 4 years ago
Andrew Cassidy 5560eee368 rename background color property to make KSP happy 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 8ca3925e04 Move projection code into shared library 4 years ago
Andrew Cassidy f630fb2215 Revert world-space normal change and write paint shader
• Revert previous change to compute world normal in the surf function, was unnecessary for edge wear effect
• Rewrite paint shader with new library
• Allow for texture scaling and tiling in decals
4 years ago
Andrew Cassidy cfeaab6f27 Reorganization to work with Unity project 4 years ago