Commit Graph

9 Commits

Author SHA1 Message Date
26129a8354
Disable projection onto decal shaders 2020-06-29 19:13:51 -07:00
bbbaedfa6c
Shader formatting 2020-06-17 16:43:14 -07:00
d80d5158f1
fix cutoff value on shaders 2020-06-11 22:02:13 -07:00
2756617a3d
Fix icon color when disabled in VAB menu 2020-06-09 13:23:34 -07:00
b8b8e9bc24
rename background color property to make KSP happy 2020-06-05 21:26:57 -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
4827bb5b36
Move projection code into shared library 2020-05-24 18:16:23 -07:00
392c995789
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
2020-05-24 18:09:03 -07:00
4c34e24e42
Reorganization to work with Unity project 2020-05-22 15:09:20 -07:00