Commit Graph

53 Commits

Author SHA1 Message Date
2f308c3ab6
Decrement instead of increment queue value
This is a bit more intuitive since newer decals render over older ones
2020-06-01 21:14:41 -07:00
c1b34d21a4
Make material handling more intelligent and add incrementing queue 2020-06-01 21:09:14 -07:00
921a159262
Make range and adjustability of tweakables configurable 2020-06-01 17:48:53 -07:00
ed9553d1fd
Fix decal projection being scaled twice 2020-06-01 16:54:07 -07:00
49433588a3
Fix part highlighting and the collider disappearing
Completes #2
2020-06-01 15:57:57 -07:00
bb625e768d
Fix transform handling and projection culling
Now to figure out why my collider is disappearing...
2020-05-31 23:04:59 -07:00
f8ff034652
Add localization 2020-05-31 18:26:27 -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
adadec9591
Shader tweaks to work with negative meshes 2020-05-30 23:08:16 -07:00
8eea03b671
Rotate model and fix config 2020-05-30 22:47:23 -07:00
32cd873dec
Rework bounds culling and colliders 2020-05-30 22:44:44 -07:00
90adfbd80a
Add test config and get the mod almost working 2020-05-30 17:03:14 -07:00
d644943cce
Add game assets 2020-05-30 14:32:39 -07:00
60234cbf7c
First compile 2020-05-30 14:24:31 -07:00
36afcab63c
Documentation and cleanup 2020-05-30 13:46:03 -07:00
64ae41a377
Add projection and loading functionality
ModuleConformalDecal is now, theoretically, sorta working
2020-05-30 13:36:10 -07:00
1332452d13
Print parsing errors as exceptions 2020-05-30 00:16:40 -07:00
b9e0c7fc1c
Add enable/disable logic to ModuleConformingDecal 2020-05-29 23:26:33 -07:00
d7cb233d0f
Use all cameras and rely on layers for culling
Also cleanup some stuff
2020-05-29 21:15:33 -07:00
c4d7373aa5
Add projection logic 2020-05-29 21:02:58 -07:00
788a37a851
Update project file with OrientedBounds 2020-05-29 19:04:38 -07:00
835344eac9
OrientedBounds cleanup 2020-05-29 19:03:40 -07:00
feb2eb3c4a
Add struct for OrientedBounds
Add OrientedBounds struct with functions for testing intersection with other OrientedBounds
2020-05-29 02:17:49 -07:00
6cd703e1d0
Documentation and logging 2020-05-27 15:49:17 -07:00
deb9d07055
Cleanup and check if material should inherit base normals 2020-05-27 15:43:23 -07:00
a3820a7f4d
Rename to reflect behavior instead of copying Blowfish 2020-05-27 15:31:56 -07:00
38c1838a22
Add parser for material properties 2020-05-27 15:19:46 -07:00
b933e33f0f
Remove redundant type identifiers 2020-05-26 23:08:38 -07:00
6b04f593b5
Small refactor 2020-05-26 23:05:07 -07:00
d524e64cd3
Begin writing material data parsing code 2020-05-26 23:04:19 -07:00
b1f54f51d6
Sort .gitattributes 2020-05-25 20:48:54 -07:00
8ff097b94d
Setup C# project 2020-05-25 20:42:24 -07:00
7959667f23
Rename wrinke texture 2020-05-25 20:34:55 -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
558a212904
Rearrange DecalProjector so Unity sees it 2020-05-23 22:10:51 -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
d443779c9b
Add more textures 2020-05-23 21:12:12 -07:00
4532fb2dd0
Add test textures 2020-05-22 16:42:33 -07:00
30b6b0fca9
enable LFS 2020-05-22 16:01:10 -07:00