Commit Graph

24 Commits

Author SHA1 Message Date
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
6c20675a99 Get flag module working 2020-06-02 22:45:48 -07:00
6a5604911d Major refactor, splitting ModuleConformalDecal 2020-06-02 20:36:45 -07:00
5652f0dda1 small tweaks 2020-06-02 19:11:05 -07:00
eda068cd66 Get decal switching working mostly 2020-06-02 18:07:05 -07:00
5ddf973a76 Run config parsing after MM is done running
MM is now a hard dependency
2020-06-02 17:14:52 -07:00
53538a7b09 Add shader blacklist
Add a configurable blacklist of shaders that can be projected onto
2020-06-02 13:46:16 -07:00
7e520f97ca Refactor material parsing and loading
This should hopefully pave the way for usable module switching using B9PS
2020-06-02 00:53:17 -07:00
114fc745f0 Revert "Decrement instead of increment queue value"
This reverts commit 2f308c3ab6.
2020-06-01 21:28:01 -07:00
1ee1b0d84f Dont zwrite decal shaders 2020-06-01 21:27:36 -07:00
dfd4224ae0 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
6ae598d9f5 Make material handling more intelligent and add incrementing queue 2020-06-01 21:09:14 -07:00
3e23d8696a Make range and adjustability of tweakables configurable 2020-06-01 17:48:53 -07:00
e4e099618d Fix decal projection being scaled twice 2020-06-01 16:54:07 -07:00
d54887414f Fix part highlighting and the collider disappearing
Completes #2
2020-06-01 15:57:57 -07:00
91a6613707 Fix transform handling and projection culling
Now to figure out why my collider is disappearing...
2020-05-31 23:04:59 -07:00
a12b11a339 Add localization 2020-05-31 18:26:27 -07:00
cffc35d17a 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
051e1d3c7a Shader tweaks to work with negative meshes 2020-05-30 23:08:16 -07:00
184325f564 Rotate model and fix config 2020-05-30 22:47:23 -07:00
8a056f5c72 Rework bounds culling and colliders 2020-05-30 22:44:44 -07:00
01e046a7f1 Add test config and get the mod almost working 2020-05-30 17:03:14 -07:00
3c8f102f5d Add game assets 2020-05-30 14:32:39 -07:00
561b3778ad First compile 2020-05-30 14:24:31 -07:00