Andrew Cassidy
114fc745f0
Revert "Decrement instead of increment queue value"
...
This reverts commit 2f308c3ab6
.
4 years ago
Andrew Cassidy
1ee1b0d84f
Dont zwrite decal shaders
4 years ago
Andrew Cassidy
dfd4224ae0
Decrement instead of increment queue value
...
This is a bit more intuitive since newer decals render over older ones
4 years ago
Andrew Cassidy
6ae598d9f5
Make material handling more intelligent and add incrementing queue
4 years ago
Andrew Cassidy
3e23d8696a
Make range and adjustability of tweakables configurable
4 years ago
Andrew Cassidy
e4e099618d
Fix decal projection being scaled twice
4 years ago
Andrew Cassidy
d54887414f
Fix part highlighting and the collider disappearing
...
Completes #2
4 years ago
Andrew Cassidy
91a6613707
Fix transform handling and projection culling
...
Now to figure out why my collider is disappearing...
4 years ago
Andrew Cassidy
a12b11a339
Add localization
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
051e1d3c7a
Shader tweaks to work with negative meshes
4 years ago
Andrew Cassidy
184325f564
Rotate model and fix config
4 years ago
Andrew Cassidy
8a056f5c72
Rework bounds culling and colliders
4 years ago
Andrew Cassidy
01e046a7f1
Add test config and get the mod almost working
4 years ago
Andrew Cassidy
3c8f102f5d
Add game assets
4 years ago
Andrew Cassidy
561b3778ad
First compile
4 years ago
Andrew Cassidy
8cd456f16e
Documentation and cleanup
4 years ago
Andrew Cassidy
e504936896
Add projection and loading functionality
...
ModuleConformalDecal is now, theoretically, sorta working
4 years ago
Andrew Cassidy
0b34991f34
Print parsing errors as exceptions
4 years ago
Andrew Cassidy
995c9120e5
Add enable/disable logic to ModuleConformingDecal
4 years ago
Andrew Cassidy
d5038e19bc
Use all cameras and rely on layers for culling
...
Also cleanup some stuff
4 years ago
Andrew Cassidy
1287e729eb
Add projection logic
4 years ago
Andrew Cassidy
bd1a588ff7
Update project file with OrientedBounds
4 years ago
Andrew Cassidy
1f92797072
OrientedBounds cleanup
4 years ago
Andrew Cassidy
b72fcb07f0
Add struct for OrientedBounds
...
Add OrientedBounds struct with functions for testing intersection with other OrientedBounds
4 years ago
Andrew Cassidy
387ba964fb
Documentation and logging
4 years ago
Andrew Cassidy
a1745f6e3a
Cleanup and check if material should inherit base normals
4 years ago
Andrew Cassidy
a90d24c141
Rename to reflect behavior instead of copying Blowfish
4 years ago
Andrew Cassidy
1ed0cfacb7
Add parser for material properties
4 years ago
Andrew Cassidy
c0a16e9bbd
Remove redundant type identifiers
4 years ago
Andrew Cassidy
645e93611b
Small refactor
4 years ago
Andrew Cassidy
84c2107288
Begin writing material data parsing code
4 years ago
Andrew Cassidy
6a000c805e
Setup C# project
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