Skip to main content
100%

Gist a33a5c0eb38ae642af46a478b3951163

✓ Published0🌍 Public
Aandybak
Last edited Sep 30, 2018
Created on Sep 30, 2018

A Unity shader demonstrates a mesh-spherization effect by morphing a flat textured surface into a sphere. The vertex shader normalizes each vertex position, scales it by a configurable radius, and blends between the original and spherical coordinates using an amount parameter. The fragment shader samples the main texture and halves its color output. The shader uses Unity's `UnityObjectToClipPos` for projection and applies fog through standard CG macros. The material exposes radius and amount properties for interactive control.

AI-generated description

Similar vizzes