Commit Graph

40 Commits

Author SHA1 Message Date
c262355004
First working text rendering 2020-07-24 14:39:35 -07:00
c40ce2cb55
Working color picker UI 2020-07-22 22:37:16 -07:00
acc8bd556a
Add rounded rectangle shaders and remove masks 2020-07-21 16:41:26 -07:00
6f6c220c23
Color picker UI integration 2020-07-21 00:52:23 -07:00
ef30c79950
Add start of color picker and reorganize 2020-07-19 23:56:38 -07:00
5e76fd7cd4
Add basic ui controller 2020-07-15 18:12:50 -07:00
497da5ca92
Merge branch 'develop' into feature-text 2020-07-02 20:13:46 -07:00
198df83e16
Shader fixes and legacy shader code 2020-07-02 19:40:00 -07:00
a074257314
Tweak and compile shaders 2020-07-01 22:54:30 -07:00
5a637977a0
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
26129a8354
Disable projection onto decal shaders 2020-06-29 19:13:51 -07:00
69a9e801ed
Play around more with text rendering 2020-06-19 01:01:46 -07:00
9c8d48d42c
Fix zbuffer writing in bounds shader 2020-06-18 14:15:59 -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
b247e9af4e
Add visible bounding boxes around projection area 2020-06-11 19:59:53 -07:00
da1b241677
Add glow shader for bounding cube 2020-06-11 18:57:43 -07:00
f335aec8ba
Add SDF shaders 2020-06-11 14:14:59 -07:00
93196d5b65
Hopefully fix decals when used with certain parts 2020-06-09 21:13:36 -07:00
2756617a3d
Fix icon color when disabled in VAB menu 2020-06-09 13:23:34 -07:00
0393ab0263
Decal shader changes, try to fix lighting additive pass 2020-06-08 00:03:26 -07:00
b8b8e9bc24
rename background color property to make KSP happy 2020-06-05 21:26:57 -07:00
b28e5ee7d1
Rework back shader and textures, add flag 2020-06-05 00:30:46 -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
5fef800f21
Dont zwrite decal shaders 2020-06-01 21:27:36 -07:00
6e07433eed
Fix ForwardAdd overlap in shader
This requires some code change to actually work (the material Queue also needs to be updated dynamically)
2020-05-31 18:25:29 -07:00
9a8a347cc7
update shader to disable culling 2020-05-30 23:09:53 -07:00
c158f7a702
Add specular paint shader 2020-05-25 10:35:32 -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
27ac9691b7
Compute world-space normal in programmable portion of the shader 2020-05-24 16:48:37 -07:00
8fafe968d2
I guess that doesnt do anything. odd 2020-05-24 16:16:17 -07:00
ed2fb2c2bd
Shader fixes and cleanup 2020-05-24 16:05:29 -07:00
be788f7e9f
Enable multi-pass forward rendering 2020-05-24 11:41:09 -07:00
cf51677e06
Shader cleanup and use KSP's Blinn Phong BRDF 2020-05-24 10:46:50 -07:00
3b811e00f1
Remove debug code so it actually works 2020-05-23 22:10:27 -07:00
b5b821424a
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
45482f285f
Fix formatting in DecalBack.shader 2020-05-23 21:18:43 -07:00
8d5e512136
Backside shader 2020-05-23 21:16:00 -07:00
4c34e24e42
Reorganization to work with Unity project 2020-05-22 15:09:20 -07:00