Commit Graph

23 Commits

Author SHA1 Message Date
93c3ff8a49 Fix text rendering more 2020-08-21 23:44:58 -07:00
e57bed6ed9 Add rounded rectangle shaders and remove masks 2020-07-21 16:41:26 -07:00
1316dbb553 Add basic ui controller 2020-07-15 18:12:50 -07:00
be641272ad Shader fixes and legacy shader code 2020-07-02 19:40:00 -07:00
f78093bbb6 Major shader overhaul
• All shaders merged into one using shader variants
• new SDF-based antialiasing engine
• Smoothness on SDFs is now disabled
2020-07-01 01:28:45 -07:00
8acf17f189 Shader formatting 2020-06-17 16:43:14 -07:00
b24a2c1bbe Add SDF shaders 2020-06-11 14:14:59 -07:00
86f68b3bf8 Hopefully fix decals when used with certain parts 2020-06-09 21:13:36 -07:00
2cae31b20f Fix icon color when disabled in VAB menu 2020-06-09 13:23:34 -07:00
5376611eae Decal shader changes, try to fix lighting additive pass 2020-06-08 00:03:26 -07:00
5560eee368 rename background color property to make KSP happy 2020-06-05 21:26:57 -07:00
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!)
2020-06-04 00:12:09 -07:00
dc25576911 Add specular paint shader 2020-05-25 10:35:32 -07:00
8ca3925e04 Move projection code into shared library 2020-05-24 18:16:23 -07:00
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
2020-05-24 18:09:03 -07:00
289988cf11 Compute world-space normal in programmable portion of the shader 2020-05-24 16:48:37 -07:00
8382a97b72 I guess that doesnt do anything. odd 2020-05-24 16:16:17 -07:00
b10660cc2c Shader fixes and cleanup 2020-05-24 16:05:29 -07:00
bd83729e5a Enable multi-pass forward rendering 2020-05-24 11:41:09 -07:00
03b647560e Shader cleanup and use KSP's Blinn Phong BRDF 2020-05-24 10:46:50 -07:00
282dcd6f48 Remove debug code so it actually works 2020-05-23 22:10:27 -07:00
da6d72b0e7 Simplify decal library
• Instead of splitting between two cginc files, declare the surf function without defining it in DecalsCommon.cginc and only include that.
• Add queue value to shader so that doesnt have to be defined automatically. Also add z-offset
2020-05-23 21:52:39 -07:00
cfeaab6f27 Reorganization to work with Unity project 2020-05-22 15:09:20 -07:00