Andrew Cassidy
00acb45e18
Fix zbuffer writing in bounds shader
4 years ago
Andrew Cassidy
8acf17f189
Shader formatting
4 years ago
Andrew Cassidy
2af192966f
fix cutoff value on shaders
4 years ago
Andrew Cassidy
3c5fcedca4
Add visible bounding boxes around projection area
4 years ago
Andrew Cassidy
a42084bf1c
Add glow shader for bounding cube
4 years ago
Andrew Cassidy
b24a2c1bbe
Add SDF shaders
4 years ago
Andrew Cassidy
86f68b3bf8
Hopefully fix decals when used with certain parts
4 years ago
Andrew Cassidy
2cae31b20f
Fix icon color when disabled in VAB menu
4 years ago
Andrew Cassidy
ebaeaa2182
Remove unused assets
4 years ago
Andrew Cassidy
5376611eae
Decal shader changes, try to fix lighting additive pass
4 years ago
Andrew Cassidy
f8d94ed681
Add semiotic decal atlas
4 years ago
Andrew Cassidy
daf80b7f0f
Add agency and custom category (for use with WBTools)
4 years ago
Andrew Cassidy
5560eee368
rename background color property to make KSP happy
4 years ago
Andrew Cassidy
d797a94066
Rework back shader and textures, add flag
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
1ee1b0d84f
Dont zwrite decal shaders
4 years ago
Andrew Cassidy
cffc35d17a
Fix ForwardAdd overlap in shader
...
This requires some code change to actually work (the material Queue also needs to be updated dynamically)
4 years ago
Andrew Cassidy
824e48620a
update shader to disable culling
4 years ago
Andrew Cassidy
353dc61ebd
Rename wrinke texture
4 years ago
Andrew Cassidy
dc25576911
Add specular paint shader
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
289988cf11
Compute world-space normal in programmable portion of the shader
4 years ago
Andrew Cassidy
8382a97b72
I guess that doesnt do anything. odd
4 years ago
Andrew Cassidy
b10660cc2c
Shader fixes and cleanup
4 years ago
Andrew Cassidy
bd83729e5a
Enable multi-pass forward rendering
4 years ago
Andrew Cassidy
03b647560e
Shader cleanup and use KSP's Blinn Phong BRDF
4 years ago
Andrew Cassidy
0444b33613
Rearrange DecalProjector so Unity sees it
4 years ago
Andrew Cassidy
282dcd6f48
Remove debug code so it actually works
4 years ago
Andrew Cassidy
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
4 years ago
Andrew Cassidy
8594b8bf28
Fix formatting in DecalBack.shader
4 years ago
Andrew Cassidy
6a25472d9c
Backside shader
4 years ago
Andrew Cassidy
f95a8d909c
Add more textures
4 years ago
Andrew Cassidy
d4e7b57427
Add test textures
4 years ago
Andrew Cassidy
cfeaab6f27
Reorganization to work with Unity project
4 years ago