• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
Custom Shader Loader

Plugins + Scripts Custom Shader Loader

Download [0.02 MB]

regguise

Well-known member
Joined
Nov 20, 2021
Messages
57
Reactions
548
regguise submitted a new resource:

Custom Shader Loader - Why I am seeing purple?

This is a plugin that loads custom unity shader from assetbundle.

It works on person atoms, clothing items (via @Stopper 's clothing plugin manager) and CUAs.

How to use:

1. load the plugin on a person plugin
2. go into UI

View attachment 478872

3. click on "Select Load Shader Bundle" and pick an assetbundle that has a shader.
4. choose shader from "Select Shader"...

Read more about this resource...
 
Hi! thx for making this wonderful plugin!
But i also found out a bug(maybe?). Using this plugin to apply custom shader will lock textures' tile/offset to default(1).
For example , i used some minor details textures with 10x tileX/Y. It was set back to 1x (though it still showed original tile number i used).
Hope theres a fix to this)
 
If someone could automate this that would be awesome. I'm trying to wrap my head around this and I have like 100 clothing items I could apply this to. It just seems a bit tedious.

Or maybe some clothing creators will go back and add this to some previously made clothing, because it's pretty awesome!
 
Hi! thx for making this wonderful plugin!
But i also found out a bug(maybe?). Using this plugin to apply custom shader will lock textures' tile/offset to default(1).
For example , i used some minor details textures with 10x tileX/Y. It was set back to 1x (though it still showed original tile number i used).
Hope theres a fix to this)
Thanks for your feedback!

Yes the shader doesn't implement tileX/Y at the moment. But it should be doable. I'll try to add it in next update.
 
Thanks for your feedback!

Yes the shader doesn't implement tileX/Y at the moment. But it should be doable. I'll try to add it in next update.

It is going to be an update in the shader itself rather than the plugin, just to clarify
 
It doesn't seem to work with SSS. I can only use it by changing the Render Queue, but there's another issue — after I take off the stockings and put them back on, the same problem occurs again, and I have to change the Render Queue once more.
20250413-094009.png
 
It doesn't seem to work with SSS. I can only use it by changing the Render Queue, but there's another issue — after I take off the stockings and put them back on, the same problem occurs again, and I have to change the Render Queue once more.
View attachment 479736
Yes. I have seen similar behavior. I think I know where the issue is. I will add renderqueue handling/restore in next update. But it will be in the plugin not the shader. Thanks for reporting this!
 
Hello regguise! Thank you very much for making and sharing this plugin!

Would it be possible to make "Rescan Clothing Items" a triggerable command? Or is it already possible and I just don't find it 🤔

Rescan Clothing Items.jpg
 
Hello regguise! Thank you very much for making and sharing this plugin!

Would it be possible to make "Rescan Clothing Items" a triggerable command? Or is it already possible and I just don't find it 🤔

View attachment 480176

Thanks, yes I do have a list of todo items and adding triggerable button/sliders is one of them. Probably won't make it next update tho. But the one afte that I will try to implement it.
 
Thanks, yes I do have a list of todo items and adding triggerable button/sliders is one of them. Probably won't make it next update tho. But the one afte that I will try to implement it.

Oh lol did not expect you to respond so quickly! Very happy to hear that it is planned! 👯‍♀️🥳🍻 And thanks!
 
Great plugin and thank you for making this! but does it work on futa/male atom? I tried but it doesn't seem to work and some error message pops up. It works fine on female atom.
Also: is it possible to use it on decal? using decals to make stockings can fit perfectly against the skin without any offset or clipping issues.
 
Great plugin and thank you for making this! but does it work on futa/male atom? I tried but it doesn't seem to work and some error message pops up. It works fine on female atom.
Also: is it possible to use it on decal? using decals to make stockings can fit perfectly against the skin without any offset or clipping issues.
Thanks!

I haven't thought of futa/male support but I will look into it. If not too much difference I will add it probably in third update or so.


For the shader only on decal, the short answer is no.

Based on my understanding the decal texture overlay on skin is handled by the default skin shader. since we are doing shader replacement here, once it is swapped you lose that decal texture overlay slot. Now I can, theoretically implement in the custom shader to only affect the decal texture, but that means I need to re-implement the rest of the skin shader which is not trivial and really is not worth the effort. On the other hand swapping skin shader means whatever texture you are using should be using the G2F UV, this usually means for given piece of clothing the creator needs to wrap it to G2F shape and do texture transfer.

So in all, it is not that it cannot be done, it's the gain can't really justify the amount of work required.
 
regguise updated Custom Shader Loader with a new update entry:

Fixes and Updates

New features:
1. Added trigger action for rescan clothing items and rescan CUA materials
2. Added detection when multiple instances of plugin is loaded on one person. Only the first plugin can replace skin shaders

Bug fixes:

1. Various fixes on restore preset actions upon scene loads
2. Fixed an issue where plugin loads will reset the render queue value.


Known issue:
Due to how clothingplugnmanager handles json...

Read the rest of this update entry...
 
Is it possible to apply the Hunting-Succubus Anime/Cell Effect to skins only?
If you are talking about using this plugin to load shader from Hunting-Succubus Anime/Cell Effect's assetbundle,

the answer is yes, you can load it and apply it only to skin. But the effect won't look right because it lacks the json file that tells the plugin what properties to generate controls for.

Now the question is where do we get the json file for shader.
Hunting of course should be able to make the json file since he has the shader source, but I don't know if he has time/or is willing to.

Theoretically I can dig through Hunting's plugin code and find out what properties he is controlling from there. But I won't have time until I cleared up my other planned work.

If you do try loading it just to see what it looks like, remember only pick the third shader from the list, the others crashes VaM
 
Hi! I'm having this issue where VAM's CUA doesn't get any global illumination from HDRI scenes - the shadow areas just turn out pitch black. I've been using Vamifier or MacGruber's SkyMagic to fix it, but Vamifier messes up material reflections making everything look weird, and SkyMagic's workflow is kinda tedious with all those steps (SkymagicExporter → unity → asset bundle → SkymagicLoader). Does this plugin make things simpler by any chance? Oh and just FYI, I'm talking about Unity's default shaders here. Any tips would be awesome!
 

Similar threads

Back
Top Bottom