txstc55 / moebius-effect-threejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Moebius Effect

I was inspired by the video: Moebius-style 3D Rendering | Useless Game Dev, and found that there's no implementation in three js. Probably because many of the implementations out there are based on shader graphs.

Basically, everything in that video was implemented in shader. In the video, the shadows were read from texture. Here I implemented them directly in shader.

Specular reflection and diffuse lighting are computed and those with high values are highlighted with an eggshell color.

About


Languages

Language:JavaScript 66.2%Language:Vue 29.8%Language:HTML 2.1%Language:Shell 1.8%