Hi folk, i see this pen with mix with dark and light mode
but it tiny complicated to me can any one just tell me what the main concept with turn light and dark in shaders ?
Thanks
Hi folk, i see this pen with mix with dark and light mode
but it tiny complicated to me can any one just tell me what the main concept with turn light and dark in shaders ?
Thanks
Hi!
Long story short: compute/set colors for dark and light parts, then mix them in fragment shader with smoothstep()
, using screen coordinates; use that approach for all the materials you use in your scene.