• Hi Guest!

    We have posted a new VaM2 dev log on Patreon, starting a monthly cadence of written progress updates between Beta releases. Highlights include the new Gizmos System, Selection Carousel, and Modes System with Context-Specific Editing. Beta1.2 is 15 of 21 items complete.

    Read the full post on Patreon, or follow progress on the public Trello roadmap.
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

More resources from Mxx

Latest updates

  1. 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: 1
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
That's a fantastic idea, bro!
Upvote 0
Positive
Version: 1
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