All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Tutorial: Creating Cigarette Smoke Effects with Shaders and Three.js

By

bradwoodsio

4mo ago· 5 min readen

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 pulled
How 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.
Snippet from the RSS feed
Notes about creative coding on the Web.

You might also wanna read