Skip to main content

Technical specifications and known limitations

This page sums up, in numbers, what RealWetSystem v1.2.1 adds to an avatar and how. You don't need to read it for everyday use.

Supported environment​

ItemSupported
EditorThe Unity Editor on Windows (purchase activation works in Linux and macOS editors from 1.1.0, but those editors have not been tested yet)
UnityUnity 2022.3 for VRChat
VRChat Avatars SDK3.10.0 or later, below 4.0
NDMF1.13.1 or later, below 2.0
Modular Avatar1.14.0 or later, below 2.0
ShaderslilToon 2.3.0 or later (tested with 2.3.4), Poiyomi Toon / Pro (tested versions in Compatibility)
AvatarHumanoid avatars. A new install is blocked if the avatar is not Humanoid.
PlatformPC avatars using Direct3D 11. Quest and mobile are not supported.

How it works​

  • Where clothes get wet, the spread, the protection mask and the distance to the body are calculated ahead of time in Unity and stored in meshes and textures.
  • In game, the wet shaders read that data and the menu values to draw the look. No particles, PhysBones, Colliders or Contacts are added.
  • The preview and the upload use the same settings and the same calculation.
  • The NDMF plugin name is RealWetSystem.

Synced parameters​

Only the parameters of the menu items you choose are added to the avatar.

MenuParameterSyncSavedStarting value
Show Clothing WetnessCooki/ClothWetEnable1 bitSavedOn
Wetness Amount (without RealSweatSystem)Cooki/ClothWetAmount8 bitsSaved0%
Link RealSweatCooki/ClothWetSweatLink1 bitSavedOn
Wetness Amount (Unlinked)Cooki/ClothWetManualAmount8 bitsSaved0%
Whole AreaCooki/ClothWetWhole1 bitSavedOff
Fast DryCooki/ClothWetFastDry1 bitNot savedOff
Hold Current State (For Photos)Cooki/ClothWetHold1 bitNot savedOff
Only Visible to Me (without RealSweatSystem)Cooki/ClothWetLocalOnly1 bitSavedOff
Private Area ProtectionCooki/ClothWetProtect/All1 bitNot savedUnity setting (on in a new install)
See-Through Protection Range (50% = Standard)Cooki/ClothWetProtectRange8 bitsSaved50%
See-Through Protection Strength (100% = Full Block)Cooki/ClothWetProtectStrength8 bitsSaved100%
Wet Clothes Only Visible to Me (with RealSweatSystem)Cooki/ClothWetLocalOnly1 bitSavedOff
Maximum Wet Range (%)Cooki/ClothWetProgressLimit8 bitsSavedUnity setting
Wet Appearance (Default 50%)Cooki/ClothWetAppearance8 bitsSaved50%
Wet Gloss (Default 50%)Cooki/ClothWetGloss8 bitsSaved50%
See-Through Strength (Default 50%)Cooki/ClothWetSeeThroughStrength8 bitsSaved50%
Wet See-Through ModeCooki/ClothWetSeeThroughModeV28 bitsSavedAs Configured
Wet EdgeCooki/ClothWetEdgeSoftness8 bitsSaved75%
Soften Wet ShadowsCooki/ClothWetSsaoRelief1 bitSavedOn
Reduce Outfit DifferencesCooki/ClothWetOutfitCorrection1 bitSavedUnity setting (on in a new install)
Spread Wetness Wider (Advanced)Cooki/ClothWetRangeExpansion8 bitsSaved0%
Outfit visibility groupsCooki/ClothWetGroup…1 bit per group—On

The table follows the order of the in-game menu (main page, See-Through Protection, Wet Tuning).

  • The recommended menu is 87 bits, and with every item, including 6 outfit visibility groups, it is 94 bits. An avatar that also uses RealSweatSystem gets the Wet Clothes Only Visible to Me toggle and uses 1 bit more (88 bits, 95 bits). VRChat's limit is 256 bits for the whole avatar.
  • Only Visible to Me and Wet Clothes Only Visible to Me use the same parameter. An avatar without RealSweatSystem gets the first one, and an avatar with RealSweatSystem gets the second.
  • When linked to RealSweatSystem, RealWet only reads RSS's sweat parameters (Cooki/SweatAmount and so on). It doesn't change RSS's parameters.
  • Features not in the menu work with the values set in Unity and add no parameters.
  • One menu page has 8 slots. If Wet Tuning has 9 or more items, a Next page appears after 7 of them. Spread Wetness Wider (Advanced) is always the last slot.

Animator​

  • On upload, layers whose names start with Cooki Clothing Wetness/ are added to the FX. The number of layers depends on the menu items you choose.
  • MA Merge Animator is not used. The avatar's other FX layers and original controllers don't change.
  • With Write Defaults set to Auto, RealWet reads the avatar's FX and matches it.
  • When you add both Reduce Outfit Differences and the Maximum Wet Range dial, the FX gains precalculated correction clips for each output group. Sync bits and in-game calculation don't increase. The maximum wet range uses the exact calculated values at 0, 5, 10, 20, 40, 60, 80 and 100% and at the Unity default; values in between are approximated by blending the two nearest steps.

Render queues​

The render queue is the number that sets the draw order. Lower values are drawn first, and higher values later. RealWetSystem changes only the render queue of its wet copies.

Original queueQueue of the wet copy
Opaque and cutout, and transparent at 2499 or belowBetween "the body or skin sweat queue + 1" and 2499
2501–2999 (transparent)Moved later, only within the same range
3000–3099 (transparent)Moved later, only within the same range
Other transparent (2500, 3100 or above)Unchanged
  • For example, if RealSweatSystem 2.0.0's sweat is at 2350, the range is 2351–2499; with only a body at 2000, it is 2001–2499.
  • If the body's queue can't be read, RealWet uses 2460–2499 and tells you.
  • Queues are never moved across the boundary between opaque and transparent. If there isn't enough room, RealWet doesn't move them and reports it in the NDMF results window.
  • Parts that use the PCSS4VRC (lilToon) experimental feature stay at 2499 or below to keep the PCSS shadows.
  • The manual order (Manual: Set Draw Priority) uses the 0–39 range.

Mesh and texture data​

DataWhere it goes
Wetness data (position, spread, protection)Whichever of the mesh's TEXCOORD2 and TEXCOORD3 (UV3 and UV4 in the settings screens) is empty. If both are used, it is stored in a texture.
RealRain rain vertex numbersTEXCOORD6 (UV6). On meshes that already use UV6, only the rain on that renderer is turned off.
Second state of blendshape-driven wetnessUV3/UV4
Protection maskA texture (it stores the distance to the protection regions, and the shader fades it smoothly)
  • For wet parts, RealWet makes a copy of the mesh and adds the data to it. The original mesh, the FBX and its import settings don't change.
  • Meshes saved by RealWetSystem are not compressed. For outfits with Mesh Compression turned on in the FBX, only those meshes are uploaded at their uncompressed size.
  • On PC (D3D11), one shader pass can use up to 64 textures. If the final shader in the upload goes over this limit, only that material goes back to its dry original.

Limits​

ItemLimit
Avatar-wide wet start points128
Avatar-wide protection regions64
In-game outfit visibility groups6
Protection region Soft edge0–5 cm
Start point Ball sizeRadius 0.5–15 cm

Generated files​

FileLocation
Wet shadersAssets/CookiTools/RealWetSystem/Generated (Assets/RWGen if the path is too long)
Per-avatar menu filesAssets/CookiTools/Generated/RealWet/RuntimeMenus
Calculation cacheLibrary/RealWet in the project
  • If they are deleted, they are made again when needed. You don't need to delete the cache folder first.
  • The shaders that the experimental features create are built from other creators' shaders installed on this PC. Please don't export or share them.

Known limitations​

  • Wetness is not added to unsupported shaders (Sunao, UnityChanToon, UTS, Poiyomi 8.x and earlier, Poiyomi Fur and Grab Pass, lilToon Fur and Gem, shaders modified by the user).
  • Tools that change the vertex order, the submeshes or the mesh structure of outfit meshes during the upload (anti-ripping tools, polygon reduction tools and so on) may not be compatible. Outfits or parts that no longer match go up dry, and the NDMF build results window shows the reason. AAO, d4rk Avatar Optimizer and TexTransTool are supported.
  • If you use VRCFury, please use 1.1436.0 or later.
  • lilToon Refraction / RefractionBlur get only the wet color and gloss, with no extra see-through.
  • Layer order is not set between separate outfits.
  • Setups that swap the mesh itself on a Renderer with an animation are not supported.
  • There is no way to turn individual wet start point spheres on or off in game.
  • Blendshape-driven wetness shows only the current shape of the clothes; it doesn't remember the wetness where the clothes were before they moved.
  • lilToon mode switches that animate only the _TransparentMode number are not guaranteed.
  • With separate export tools that don't call the SDK preprocess callbacks, the texture-limit recovery at the end of the upload may not apply.