Skip to content
项目

关于

Using shaders in p5.js

设计与媒体

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Guide: https://itp-xstory.github.io/p5js-shaders/
Collection of examples on Glitch.com: https://glitch.com/@kcconch/p-5-js-shaders

Welcome to p5.js shaders

Shaders are a great way to make graphics for your projects. So far you have probably made graphic shapes like rect() or ellipse() or maybe even 3D shapes like a plane() or a box(), and you should be more than familiar with using fill() to decide the color of these objects. But wouldn't it be great if we could make these objects have moving graphics on them? And without slowing down our sketch?

Enter the shader!


In this guide you will learn what a shader is, how to use it efficiently in p5, and how to make your own!

Consider this "the booklet of shaders". A great way to start familiarizing yourself with making amazing graphics for your projects in p5 and a simple introduction to shaders. Then, if you find yourself entranced by the world of shaders (like we do) please see the section on moving further with shaders, where we have collected some of the best sources online for finding shaders and learning more.

One of these, "The Book of Shaders" by Patricio Gonzalez Vivo and Jen Lowe, is a truly great resource if you want to dive deeper into the technical details of shaders, and we will be borrowing some explanations from this online book.

Thank you

This guide is an open-source project made during xStory at ITP NYU by Casey Conchinha and Louise Lessél.

We want to thank the following people for help and guidance during the project:

Adam Ferriss, for laying the groundwork for the entire project with his own p5 shader github repo.

Or Fleisher, Kyle Phillips, and Sehyun Kim for being our mentors.

Stalgia Grigg and Kate Hollenbach for answering our p5.js shader implementation questions.

Patricio Gonzalez Vivo and Jen Lowe for writing the amazing Book of Shaders.

探索相关项目

加载中…