• 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 - Stocking/Pantyhose

Assets + Accessories Custom Shader - Stocking/Pantyhose

Download [0.01 MB]

regguise

Well-known member
Featured Contributor
Joined
Nov 20, 2021
Messages
73
Reactions
594
regguise submitted a new resource:

Custom Shader - Stocking/Pantyhose - Legs are better with these

This is a custom shader designed for skin tight, semi-transparent clothing, namely, stocking and pantyhose.

Clothing used in screenshot credit:

VaM Default Shader:
View attachment 478917

Custom Shader:
View attachment 478919


It should be used with this plugin:
[URL...

Read more about this resource...
 
Is it Christmas already??? because this is exactly what I wished for! Seriously, look at the forums, because I've been asking about this for like 2 years. Thank you so much!
 
regguise updated Custom Shader - Stocking/Pantyhose with a new update entry:

Shader update

New features:
1. added tileX/Y and offsetX/Y support in shader
Now these sliders in material tabs should work as intended.

View attachment 480549
2. added Specular Fresnel support in shader

Now this slider in material tab should work as intended

The effect is not that obvious though, may need to tweak the strength scale in coming updates. Feedback on this is welcomed!

View attachment 480550

3. Set default render queue of...

Read the rest of this update entry...
 
Any way to be able to turn down the GI?
Not sure what you mean by GI since VaM doesn't have built-in GI afaik..

if you are referring to the ambient lighting in scene lighting tab, the shader should respond to it. If you see any lighting issue please let me know.


Nevermind, see my next reply below.
 
Last edited:
Any way to be able to turn down the GI?
Oh, I think you probably mean the "Global Illumination Filter" slider from the material tab?

Under the hood this is really just an IBL filter property. Currently this shader doesn't implement it. So the slider won't do anything atm.

Although by default it does respond to IBL, and you can turn down the effect globally by changing the ambient light. I don't know how often some one would want to ONLY turn down IBL on the clothing.

But I will put it on my list, might be tricky to do because it basically means the shader needs access the VaM's internal IBL map, which I am not even sure if it is possible.
 
Oh, I think you probably mean the "Global Illumination Filter" slider from the material tab?

Under the hood this is really just an IBL filter property. Currently this shader doesn't implement it. So the slider won't do anything atm.

Although by default it does respond to IBL, and you can turn down the effect globally by changing the ambient light. I don't know how often some one would want to ONLY turn down IBL on the clothing.

Thank you!
 
helpful indeed
stocking3.png
stocking1.png
 
regguise updated Custom Shader - Stocking/Pantyhose with a new update entry:

Property adjustment

1. Added new property control: "Edge Color Darken"
This controls how much darker the color when the edge effect. This is done to support brighter colored clothing (white pantyhoses. for example), where the edge should only be more opaque but not darkened.

i.e. you should set "Edge Color Darken" to 0 if the texture color is white.

View attachment 481313

2. adjusted internal fresnel scale. The effect is (slightly) stronger now

Read the rest of this update entry...
 
seem amazing but kinda complicated. youve added so many videos with deatail and no one step by step how to use it and description is kinda hard. (especialy point 2. is not precise how to do what it state).
 
seem amazing but kinda complicated. youve added so many videos with deatail and no one step by step how to use it and description is kinda hard. (especialy point 2. is not precise how to do what it state).
Thanks for the feedback. Let me know which part exactly you are having trouble with?
 
!> Exception during package prep: System.IO.IOException: Sharing violation on path AddonPackagesBuilder/laipap.Stocking_E_H_personal_default.1.var\Custom\Clothing\Female\VL_13\Stocking_E
at System.IO.Directory.Delete (System.String path) [0x00000] in <filename unknown>:0
at System.IO.Directory.RecursiveDelete (System.String path) [0x00000] in <filename unknown>:0
at System.IO.Directory.RecursiveDelete (System.String path) [0x00000] in <filename unknown>:0
at System.IO.Directory.RecursiveDelete (System.String path) [0x00000] in <filename unknown>:0
at System.IO.Directory.RecursiveDelete (System.String path) [0x00000] in <filename unknown>:0
at System.IO.Directory.RecursiveDelete (System.String path) [0x00000] in <filename unknown>:0
at System.IO.Directory.RecursiveDelete (System.String path) [0x00000] in <filename unknown>:0
at System.IO.Directory.Delete (System.String path, Boolean recursive) [0x00000] in <filename unknown>:0
at MVR.FileManagement.PackageBuilder.PrepPackage () [0x00000] in <filename unknown>:0

When I try to pack a new var, report show this.
 
!> Exception during package prep: System.IO.IOException: Sharing violation on path AddonPackagesBuilder/laipap.Stocking_E_H_personal_default.1.var\Custom\Clothing\Female\VL_13\Stocking_E
at System.IO.Directory.Delete (System.String path) [0x00000] in <filename unknown>:0
at System.IO.Directory.RecursiveDelete (System.String path) [0x00000] in <filename unknown>:0
at System.IO.Directory.RecursiveDelete (System.String path) [0x00000] in <filename unknown>:0
at System.IO.Directory.RecursiveDelete (System.String path) [0x00000] in <filename unknown>:0
at System.IO.Directory.RecursiveDelete (System.String path) [0x00000] in <filename unknown>:0
at System.IO.Directory.RecursiveDelete (System.String path) [0x00000] in <filename unknown>:0
at System.IO.Directory.RecursiveDelete (System.String path) [0x00000] in <filename unknown>:0
at System.IO.Directory.Delete (System.String path, Boolean recursive) [0x00000] in <filename unknown>:0
at MVR.FileManagement.PackageBuilder.PrepPackage () [0x00000] in <filename unknown>:0

When I try to pack a new var, report show this.
Not really sure what this is about. Looks like you are repackaging VL13's clothing into a new var? Don't know what kind of prep is needed for things like that. You can maybe try asking in VaM discord.
 
seem amazing but kinda complicated. youve added so many videos with deatail and no one step by step how to use it and description is kinda hard. (especialy point 2. is not precise how to do what it state).
Setting it up onto clothing items as a clothing plugin is complicated. However....you can use it as a figure plugin very simply and then just select the specific clothing item through the menu in the plugin. You can also set it up once, and then save a plugin preset (make sure to just have that one plugin on your figure first as the preset will save any and all plugins on the figure) and then you can apply that preset to any figure in any scene and it's already set up. You may just have to select a different clothing item if you're applying the preset to a different outfit or item.
 
Would there be a way to do a double sided version of this shader? It also looks good on sheer dresses and other clothing, but the inside is missing. I wouldn't change this version, but maybe, if possible, add a second for double sided clothing?
Also, I figured out why the clothing sometimes feels like it's glowing in darker scenes. The Anisotropic properties (which is what gives it that cool nylon look) doesn't get impacted by shadows. In other words, even if a light is being blocked by a body part, clothing or other object, the light still generates the anisotropic highlights on the area in shadow, essentially as if the light is still shining directly on it. I'm guessing there's likely no way to adjust this in the shader, but figured I'd ask. :)
 
Last edited:
Would there be a way to do a double sided version of this shader? It also looks good on sheer dresses and other clothing, but the inside is missing. I wouldn't change this version, but maybe, if possible, add a second for double sided clothing?
Also, I figured out why the clothing sometimes feels like it's glowing in darker scenes. The Anisotropic properties (which is what gives it that cool nylon look) doesn't get impacted by shadows. In other words, even if a light is being blocked by a body part, clothing or other object, the light still generates the anisotropic highlights on the area in shadow, essentially as if the light is still shining directly on it. I'm guessing there's likely no way to adjust this in the shader, but figured I'd ask. :)

Back side is easy to add. Let me add it next update.

The anisotropic highlight not reacting to lighting sounds like a bug to me. Will work on a fix
Thanks for reporting!
 
Back side is easy to add. Let me add it next update.

The anisotropic highlight not reacting to lighting sounds like a bug to me. Will work on a fix
Thanks for reporting!
You may want to do the double sided as an "alt" version since the single sided actually is better for stockings and stuff that doesn't come away from the body. Just a thought.
 
Any tips on how one would import a shader from unity? I've only played around with it a bit & followed some guides to do exactly what I needed... But there are some other shaders I would really love to see in vam for surfaces.

Edit: I just saw that you're going to write a guide for importing clothing shaders. Looking forward to it!
 
Last edited:
There seems to be a bug for the newest assetbundle, cannot load the assetbundle whatsoever, while the older versions seems to work, I've updated the custome shader loader plugin as well and that didn't work, here is the detailed errors, but I don't think it will help tho:
!> Error during attempt to load assetbundle Regguise.Shader_Stocking.3:/Custom/Assets/Guise/stocking.assetbundle. Not valid
!> [plugin#1_Regguise.CustomShaderLoader] [ERROR] Failed to load asset bundle
 
There seems to be a bug for the newest assetbundle, cannot load the assetbundle whatsoever, while the older versions seems to work, I've updated the custome shader loader plugin as well and that didn't work, here is the detailed errors, but I don't think it will help tho:
!> Error during attempt to load assetbundle Regguise.Shader_Stocking.3:/Custom/Assets/Guise/stocking.assetbundle. Not valid
!> [plugin#1_Regguise.CustomShaderLoader] [ERROR] Failed to load asset bundle
I tested just now with Regguise.Shader_Stocking.3.var and Regguise.CustomShaderLoader.4.var. It seems to load fine,

Could you provide some detail on what is the scenario. Are you loading on a person/CUA/clothing? Are you loading a saved scene or a preset?

Thanks
 
I tested just now with Regguise.Shader_Stocking.3.var and Regguise.CustomShaderLoader.4.var. It seems to load fine,

Could you provide some detail on what is the scenario. Are you loading on a person/CUA/clothing? Are you loading a saved scene or a preset?

Thanks
Thanks for reply, I loaded it on a clothing, I tried restart vam yesterday and it did not work, however it's working now when I loaded it today somehow, so I guess it's not an issue for the assetbundle, but thank you anyway.
 
Back
Top Bottom