Skip to content

Skin, eye and teeth shaders

GoDNA Standard and GoDNA Pro

The shaders are in the paid editions. GoDNA Lite uses Godot's StandardMaterial3D instead, and a light version of the hair shader for hair cards. See Editions.

The importer gives every surface of a character a material made from its Unreal material: the exporter records which material each surface uses, its textures and its parameters, and the importer turns them into a ShaderMaterial with the GoDNA shader for that kind of surface. Nothing needs to be set up by hand, and the materials come back the same on every reimport. This page gives an overview of the skin, eye and teeth shaders and of how GoDNA deals with the usual problems of bringing Unreal materials into Godot.

Skin

The face and body use one skin shader, fed with the maps Unreal's MetaHuman skin uses: base color, normal, specular and roughness, and a scatter map that says where light passes through the skin (ears, nostrils, lips) and where it doesn't.

  • Subsurface scattering. Godot's screen-space subsurface scattering softens the light on the skin, with its strength taken from the scatter map, so thin, fleshy areas glow and bony areas stay firm.
  • Sharp detail through the scattering. Godot blurs the whole lit color, base color included, which smears freckles, pores and stubble. Unreal blurs only the light. GoDNA renders the skin in two passes so the color detail stays sharp on top of the soft light, as in Unreal.
  • Close-up detail. A tiling micro normal map and a cavity map add the fine structure of the skin, so it holds up in close-ups; the cavity map also takes the shine out of pores and fine lines.
  • Unreal's skin highlights. Unreal lights skin with a broad, soft sheen. The shader converts Unreal's specular and roughness values to Godot's lighting model so the highlights have the same strength and spread, instead of looking oily.
  • Crease shading on the face. The face uses Unreal's ambient occlusion map to darken and warm the creases around the eyes, nose and mouth and deepen their color, where light bounces between skin surfaces.

Skin Studio's color controls (hue, saturation, brightness) work on the textures in the shader, so a skin tone change keeps freckles and redness in proportion. Body skin can follow the face's color so the neck seam doesn't show. See Skin Studio.

Eyes

A MetaHuman eye is three surfaces, and GoDNA has a shader for each:

  • Eyeball. One surface for the white of the eye and the iris. The iris is seen through the cornea with refraction, so it sits under the clear dome and shifts as the view moves, with a soft limbal ring at its edge. A wet, glossy layer covers the whole eyeball, so highlights stay crisp while the white of the eye keeps its own surface detail underneath.
  • Eye occlusion. A thin shell over each eye that shades the eyeball softly where the lids meet it, so the eyes sit in their sockets instead of looking pasted on.
  • Lacrimal fluid. The wet line between eyeball and lids. Only its highlights are drawn, as in Unreal.

The eyes turn with real eye bones (see Twist, eye and head drivers), so the highlights and the refraction follow the gaze correctly. Skin Studio changes the iris color on both eyes at once.

Teeth

The teeth, gums and tongue share one shader with base color, normal, specular, roughness and a scatter map, which sets how much light passes into each part, so the gums and tongue look soft and wet next to the teeth. Skin Studio has a tint for them.

How GoDNA handles common import problems

Unreal materials and textures don't drop straight into Godot. These are the usual problems and what GoDNA does about them, so you don't have to:

Problem What GoDNA does
Normal maps look inverted (bumps lit from the wrong side). Unreal uses DirectX normal maps, Godot expects OpenGL ones. The shaders flip the green channel. The textures stay as exported, so nothing is converted on disk.
Textures shimmer or look blurry at a distance, or a normal map imports as a color image. Godot picks its first import settings before it knows a texture is used in 3D. The exporter writes Godot's import settings next to each texture: VRAM compressed, with mipmaps, and marked as a normal map where Unreal treats it as one. The first import is already right. If a texture was imported without mipmaps, the importer says which one and how to fix it.
Washed-out or too-dark colors. Color textures are sRGB, data textures (normal, roughness, scatter) are linear, and Unreal's color parameters are linear. Each texture is read in its proper color space, and color parameters are converted for Godot's color fields, so they show the same values Unreal used.
Too shiny or too dull skin. Unreal and Godot define specular differently. Unreal's specular and roughness are converted so surfaces reflect the same amount of light.
Placeholder textures. Unreal fills unused slots with flat placeholder textures. They are skipped and the shader's own default is used.
Overlays darken the face or cast odd shadows. The eye occlusion and lacrimal surfaces are light overlays that don't cast shadows or hide what's behind them.
Missing textures. A texture outside the Godot project can't be loaded. The importer warns with the file and the fix. The Characters drawer copies every texture a character needs into the project.

Renderer and project settings

  • Subsurface scattering needs the Forward+ renderer. On Mobile and Compatibility the skin renders without it.
  • How far the scattering reaches and how good it looks are project-wide settings in Project Settings > Rendering > Environment > Subsurface Scattering. GoDNA uses Godot's defaults; raise the quality for close-ups. The GoDNA tab's Graphics drawer changes it for the studio only.
  • The shaders are ordinary .gdshader files in addons/godna/shaders/, and the materials are ordinary ShaderMaterials in the imported scene. To change a character's look so it survives reimports, use Skin Studio (GoDNA Pro; GoDNA Standard has the Materials tab) or set a material override on the mesh in your own scene.