CUAShadowFixer | Fixes shadows on CUAs, while keeping baked lighting and materials intact

Default CUA, without any plugins
Same CUA with CUAShadowFixer
(Environment used in this showcase is Diner by VamX!)

What does CUAShadowFixer do?
Most CustomUnityAssets are built with stock Unity shaders that don't understand VaM's shadow system, so they ignore your scene lighting and look flat. CUAShadowFixer swaps each material onto a VaM-shadow-correct equivalent that keeps the asset's baked lighting, specular, normals and emission fully intact. So correct shadows with the same overall look.

Why not use UnityAssetVamifier?
This only fixes shadows by swapping everything onto VaM's skin shader. It works, but it flattens specular and erases the baked lighting the asset shipped with. CUAShadowFixer changes only the shadow handling, so your asset still looks the way its creator intended.


About the size
This plugin includes a ~22 MB precompiled shader bundle. A VaM plugin can't build shaders at runtime, so the shadow-correct shaders are compiled ahead of time, and the bundle covers every material workflow (metallic/specular/roughness) and lightmap mode so it works on as many CUAs as possible.

Features
  • Correctly receives shadows from VaM lights
  • Metallic / Specular / Roughness properties remain intact
  • Works on Baked Lighting environments and other renamed-Standard shaders
  • Sliders to adjust smoothness, reflection intensity and over-bright surfaces
  • Bonus Face-Hide tool: hide mesh faces to see into a walled room from the outside

Face-Hide
(Environment used in this video is Sports Equipment Room by LDR!)

How to use

Per CUA:

  1. Add a CustomUnityAsset atom and load your asset.
  2. In the Plugins tab, add CUAShadowFixer.cslist
  3. Done. (it might take a few seconds for the shader to apply
Scene-wide Mode:
  1. Add CUAShadowFixer.cslist to an Empty (or as a Scene or Session Plugin)
  2. A new tab "Scene CUAs" appears, in which you can select CUAs in the scene to include/exclude for conversion

Face-Hide
  1. Select Face-hide mode
  2. Hold your cursor over a face until it lights up blue
  3. Hide that face by pressing Space



Tabbed UI made possible with @14mhz 's CustomUI / CustomTabUI!
Chair in the thumbnail is
Leather armchair by Ghostwalden
Images and attachments
  • Diner CUAShadowFixer GIF.gif
    Diner CUAShadowFixer GIF.gif
    24.2 MB · Views: 0

Share this resource

Latest updates

  1. v4 - Parenting fix

    Fixed parented CUAs: Parenting the CUA to another atom like an Empty would break the shadow fix...
  2. v3 - QoL feature: no more light leaking + Faster on bigger scenes

    Two-sided shadow casting (fix light leaks) New toggle in the Fix Shadows tab. A lot of...
  3. v2 - Scene-wide mode / per-CUA tuning / Cached conversions

    Scene-wide mode: Add CUAShadowFixer.cslist on an Empty atom (or load it as a Scene or Session...

Latest reviews

Positive
Version: 4
Whoa another game changing plugin!! our vam community are blessed with such a QoL plugin this year, Thank you for making this amazing plugin for free!
Upvote 0
Positive
Version: 2
Posted:
OH MY GOD YOU DID ITTTTT THANK YOU
The VAMifier Gap has finally been bridged...
Upvote 0
Positive
Version: 1
Posted:
To clarify, the shaders included with CustomUnityAssets aren't inherently incompatible with VaM lighting and shadows. The issue typically arises when CUA scenes have been through a light baking process and packaged as a single unit—they tend to rely on the baked data rather than real-time VaM shadows. Fortunately, standalone CUA assets generally don't require this adjustment under normal circumstances.
If I'm not mistaken, the tableware on the table—if they're standalone CUA assets—should have their shadow casting working perfectly fine. The issue lies specifically with the entire scene file that includes the table itself.
Upvote 0
Positive
Version: 1
Posted:
That's a fantastic idea, bro!
Upvote 0
Positive
Version: 1
Posted:
YES! thanks to face hide i might not need to keep using CUA editor to search and remove those manually. That is a cherry on top.
Upvote 0
Back
Top Bottom