Closed orels1 closed 3 years ago
I have some things still to handle there in terms of normalization, not ready to merge yet
Ok, now it should be good. I moved some things out so they were not normalized and causing sparkles in dot-based stuff (so everything lol). Now its all good
The gist of changes:
Dots/Directions calculations got moved to the
LightingFunctions
cginc, so they can be used directly outside of the main lighting codeAdded Pre/Post hooks which just pass data by default, but can be overwritten by custom shaders to adjust input data / overlay effects on top For people who want to edit the main lighting calculation - imho it makes sense to override the main
Lighting.cginc
anywaysAdded the
HookData
struct to avoid 10000 arguments for functions