Fresnel rim glow
three.js and WebGL · MIT
- What it does
Adds a colored glow at the grazing edges of a standard material by injecting three lines of GLSL with onBeforeCompile, so the lit material keeps its normal shading. Use it to lift a subject off a busy background or to mark a state. No clock: it depends only on the view.
- Get it
material.onBeforeCompile = (shader) => { /* add uRimColor, uRimPower, uRimStrength; after <emissivemap_fragment> add fresnel to totalEmissiveRadiance */ }; material.customProgramCacheKey = () => 'fresnel-rim';
- Needs (the whole pack)
Nothing to read the skills. To run what they build: Node and npm, Python 3 for the helper scripts, and Chromium through Playwright for the inspector and tests. Optional and paid: Tripo, Gemini and ElevenLabs keys for the three generator skills.
- License
MIT
- From