NekoToonDocs Download

Normal Map & Reflection

Gem

The Gem rendering mode turns a material into a cut jewel or crystal: it bends the background seen through it, splits it into colors, reflects the environment and adds glinting facets on the inside. The Gem foldout only appears when the material's Rendering Mode is set to [high-load] Gem.

As the "[high-load]" label says, Gem is expensive. It uses a GrabPass (a copy of the screen behind the object) plus an extra pass, and renders in the transparent queue with both sides visible. Use it for small accessories, not large meshes. A GrabPass named like this is captured once per frame and shared, so gems generally do not show other gems or refractive objects through themselves.

How it is drawn: a first pass blacks out the area the gem covers, then the main pass adds the result on top. The main color is darkened toward the edges and multiplied by the refracted background; environment reflections and the inner sparkle are then added. MatCap, Rim Light and Glitter still work on a gem and are added afterwards. Gem materials have no outline.

Refraction#

Strength#

_RefractionStrength -1 – 1 · default 0.5

How far the background seen through the gem is shifted, based on the surface direction. Higher values distort it more, like thicker glass; negative values bend it the other way; 0 shows the background undistorted.

Fresnel#

_RefractionFresnelPower 0.01 – 10 · default 1

Controls where the distortion happens. The shift is scaled by how edge-on the surface is, raised to this power: low values distort across the whole gem, high values keep the centre clear and only bend the edges.

Gem#

Chromatic Aberration#

_GemChromaticAberration 0 – 1 · default 0.02

Splits red, green and blue apart, in both the refracted background and the reflections seen on back faces, for the rainbow "fire" of a cut diamond. Small values (0.01–0.05) look best; large values look like a broken lens.

Contrast#

_GemEnvContrast number · default 2

Contrast applied to the refracted background and the environment reflection: higher values make dark areas darker and bright areas brighter, which gives the gem its sharp light/dark facets. Above 1 the result is also partly desaturated toward grey, so very high values make the gem look more colorless.

Environment Color#

_GemEnvColor HDR color · default (1, 1, 1, 1)

Multiplies the environment reflection. Tint it to color the reflections, or raise it above 1 to brighten them in dim worlds.

Particle Loop#

_GemParticleLoop number · default 8

Number of repeating bands used to build the inner sparkle pattern (calculated from the view direction against the surface). Higher values give many small glints; lower values give a few large ones. The sparkle only appears on the inside (back faces) of the gem.

Color (particles)#

_GemParticleColor HDR color · default (4, 4, 4, 1)

Color and brightness of the inner sparkle. The default is a bright HDR white; set it to black to turn the sparkle off.

VR Parallax Strength#

_GemVRParallaxStrength 0 – 1 · default 1

Only matters in VR, and only for the inner sparkle pattern. At 1 each eye sees its own pattern (more depth, more like a real gem); at 0 both eyes see the same pattern.

Reflection#

Smoothness#

_SmoothnessTex texture (R) · default white _Smoothness 0 – 1 · default 1

How polished the surface is. At 1 reflections are mirror-sharp; lower values blur them like frosted glass. The texture's red channel (main UV) multiplies the slider, so you can make parts of the gem matte.

Reflectance#

_Reflectance 0 – 1 · default 0.04

How strongly the surface reflects when seen head-on (reflections always get stronger toward the edges). 0.04 is typical for glass; raise it for a more mirror-like crystal.

Cubemap Fallback#

_ReflectionCubeTex cubemap · default black _ReflectionCubeColor HDR color · default (0, 0, 0, 1)

A cubemap used for reflections when the world has no reflection probe (or when Override is on), multiplied by the color next to it. Note that the default color is black, so without a probe the gem reflects nothing until you assign a cubemap and set this color to white or brighter.

Override#

_ReflectionCubeOverride on / off · default off

Always uses the Cubemap Fallback, ignoring the world's reflection probes. Use it if you want the gem to look the same in every world.

Enable Lighting (Fallback)#

_ReflectionCubeEnableLighting 0 – 1 · default 1

How much the fallback cubemap is multiplied by the light color. At 1 it darkens in dark worlds like a real reflection would; at 0 it keeps its own brightness.

Many VRChat worlds have poor or no reflection probes. For jewellery that should always sparkle, assign a bright, high-contrast cubemap, set the fallback color to white and turn on Override. The main color still matters: it tints the whole gem.

These settings appear in the Gem foldout only. Other reflection features of the normal shader are hidden for Gem materials; for the similar but plain-glass effect, see Refraction.

NekoToon is a fork of lilToon by lilxyzw (MIT License). Fur styles are based on Xiexe's Unity Shaders (MIT). NekoToon and its documentation are made by Mora for 404NyanFound.