Documentation / Node reference / code nodes

code/SphereNormal

Outputs the normal of a ball drawn on a flat quad.

Geometry

Treats a camera facing quad as a ball seen from the front, and outputs the world normal at a UV. Pixels outside the ball are not drawn. Use it to shade points as balls. It works in materials only.

Parameters

Name Type What it does
uv Vector2 Position on the quad, from 0 to 1.

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.