Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

VrmSubsurfaceOptions

A body’s subsurface falloff, as setSubsurface gives a material, with its mask a URL, as the body’s model is.

Property Type Default value Description
color? ColorRepresentation "#ffffff", every channel alike, as Godot’s Lambert Wrap; a skin sets a red The colour the light turns toward past the terminator: each channel wraps wrap times its linear value, so a red wraps furthest.
mask? string undefined An image whose red channel says where the falloff applies, on the body’s map UVs, such as skin white and cloth black; left out, the body’s every standard material takes it whole.
wrap? number 0.5 How far past the terminator a white channel wraps, from 0, a Lambert falloff, to 1, where the light reaches round to the back.