Reveal Decal

Reveal Decal is the script needed to spawn blood decals on weapons and props. The shader “ThunderRoad > ASshader - LitMoss” is required for this, and requires a set up before Reveal starts working.

You can copy the material from the example weapons provided in the SDK, as they are set up with Reveal already.

RevealScript

You can use the buttons on this script to set the resolution of the reveal material. It is recommended to keep this as low as possible to avoid any reveal texture size bloat.

For examples from Blade and Sorcery:

  • Common Dagger: 128x128
  • The Maul: 512x512 (256x256 would also suffice)
  • Antique Sword: 256x256
  • Buckler: 256x256
  • Javelin: 128x128
  • Wristblade: 128x128
  • Old Arrow: 64x64
  • The Bandit Chestplate: 512x512 (1024x1024 would also be supported)

It is recommended to keep the reveal resolution low to prevent the game to crash on B&S Nomad, or to cause a lag spike on B&S PCVR. It is recommended not to go above 512x512, or Mask Resolution Quarter, to avoid any issues. You are unlikely to see a big change in resolutions above this point unless your item is very large.

Components

Field Description
Mask Width Adjust the Width of the resolution of the Reveal Texture.
Mask Width Adjust the Height of the resolution of the Reveal Texture.
   
Type  
Default Applies to Weapons, Items, and non clothing itmes that require Reveal.
Body Applies to bodies/creatures. Reveal is removed on drinking Health Potions.
Outfit Applies to Armor. Reveal is not removed on drinking Health Potions.

Material Setup

The Textures required for this are located in SDK/Examples/Reveal

“Reveal Layers” in the material needs to be enabled to see this area of the material. Ensure that you untick it once it is finished.

RevealMaterial

Field File Name
Layer Mask Reveal_WeaponBlood_Mask
Layer0 (R) Revealed_WeaponBlood_c
Layer0 (R) Normal The Normal Map of your Material goes Here
Layer1 (G) Revealed_Burn_c
Layer1 (G) Normal Revealed_Burn_n