Tutorial: Creating Cigarette Smoke Effects with Shaders and Three.js
By
bradwoodsio
Crispy enough to crunch, soft enough to enjoy. A good bake.
Summary
This article is a technical tutorial on creating a cigarette smoke effect using shaders and three.js, targeted at creative coders and front-end developers. It covers using Perlin noise textures for randomness, passing UV coordinates from vertex to fragment shaders, and provides implementation guidance for the visual effect.
Key quotes
· 5 pulledHow to make a cigarette smoke effect using shaders and three.js.
TexturePerlin noise will provide the random values needed for the effect.
We load a Perlin noise texture and pass it into the fragment shader.
To sample the texture, we need the UV coords of each fragment.
We can pass the coords from the vertex to the fragment shader using a varying.
You might also wanna read
css-doodle: A Web Component for Creating CSS Patterns and Artistic Designs
css-doodle is a web component that allows developers to create artistic patterns and designs using CSS Grid and custom properties. The artic
Dwitter: JavaScript Demos in 140 Characters - A Platform for Compact Code Creativity
Dwitter is a web platform that showcases creative JavaScript demos constrained to just 140 characters of code. The site, built with create-r
WebSparks: An AI-Powered Tool for Building Web Applications Without Extensive Coding
WebSparks is an AI-powered software engineer that transforms ideas into fully functional web applications without requiring extensive coding
innovirtuoso.com·18h agoJoost de Valk publishes open Website Specification: 128 rules for modern, future-proof websites
Joost de Valk, creator of Yoast SEO, published the Website Specification (specification.website) — an open, platform-agnostic reference docu
ZX Spectrum BASIC interpreter rebuilt from scratch to run natively in web browsers
A developer has rebuilt the ZX Spectrum's BASIC interpreter from scratch to run in a web browser, without emulating the original Z80 hardwar
How to Set Up an Apache Reverse Proxy for an Ecommerce Website
This article provides a comprehensive, start-to-finish guide on setting up an Apache reverse proxy specifically for ecommerce websites. It c
blog.radwebhosting.com·2d ago