Skip to content

fathominfo/intro-to-shaders

Repository files navigation

Intro to Shaders

This repository is a light introduction to the capabilities of WebGL shaders, as well as some of the complexities of working with them. This set of examples was initially developed for an internal workshop at Fathom Information Design, and is tailored for an audience with a wide range of coding experience. Learn more here.

The examples get progressively more complex, starting with the basics of textures and images, and evolving to 3D shapes and representing data. As the examples progress, changes are flagged with a comment that reads "New:".

Browsing and reading the examples can help you appreciate shaders, but if you are comfortable with some light code editing, you are strongly encouraged to edit each of them as you go. They are set up so that you can comment out and uncomment in different features and behaviors as you go.

Also included is a little python webserver. If you have python on your system, you should be able to run the server.tool. It will launch a little webserver and show the examples in your browser of choice. Assuming that browser is WebGL enabled, you should be good to go.

License

The MIT License (MIT)

Copyright (c) 2018 Fathom Information Design

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

A set of examples to illustrate the capabilities and complexities of WebGL Shaders

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published