• 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.

Question CUA shaders, Vamifier ignoring roughness/gloss

Datel

Member
Joined
Jul 23, 2024
Messages
47
Reactions
73
Hello, I tried to make CUA and noticed that default Unity shaders works not really good in VAM.
Top mesh is default CUA, bottom one is vamified, showing with directional light. (Just directional will look same for both cuas)

Default shaders did not work well with VAM shadows:
- mesh dont block light or something like that, so the light going through mesh and look strange
- ignoring light's shadow strength, so in result very black shadow (like shadow strength = 1) in compare with vamified
- scene global illumination ignored, ambient light color look different

Vamifier plugin replacing CUA's material with VAM's standard material, but with issues:
- No matter Metallic/Roughness or Specular/Gloss unity material - ignoring roughness or glossy shading

1749695323184.png
1749695382256.png


Seems like vam shader ignoring roughness/gloss data stored in specular/metallic texture's alpha channel. Firstly i thought maybe vam's shader inverting alpha channel, but seems just dont use it.

Does anybody have VAM's shader source code to see what is hapening there and setup materials before loading into VAM?
Or maybe someone surely know how to properly setup CUA in VAM to make it look same as it should be?
 
I encountered a similar problem with shadows and light. And it seems to be solved by checking whether shadow casting is enabled for the Asset itself in Unity, as in the screenshot.

And you should also enable shadows for Point Light(in VAM) and then such problems should disappear. And the Unity shader will work normally again.

Vamifier works according to its own rules. I haven't worked with it and can't tell you about it.

If it didn't help, so .. maybe the problem is something else.


01_shadow33.JPG
02_shadow33.JPG
 
Upvote 0
You can also try calculating normals and tangents in the import settings for the model settings, just like in the screenshot.
In some cases, this helped me solve some other shadow issues.


03_shadow33.JPG
04_shadow33.JPG
 
Upvote 0
I encountered a similar problem with shadows and light. And it seems to be solved by checking whether shadow casting is enabled for the Asset itself in Unity, as in the screenshot.

And you should also enable shadows for Point Light(in VAM) and then such problems should disappear. And the Unity shader will work normally again.

Vamifier works according to its own rules. I haven't worked with it and can't tell you about it.

If it didn't help, so .. maybe the problem is something else.


View attachment 502430View attachment 502431

Thank you for answer. Casts Shadow setting is already set to On, i thought maybe Two Sided option will help, but no, models are same.
I think vam's shader has some calculation for scene ambient light and maybe light shadows softness. But anyway, it does not work as should be :unsure:
 

Attachments

  • 1751233782520.png
    1751233782520.png
    132.9 KB · Views: 0
Upvote 0
Back
Top Bottom