GithubHelp home page GithubHelp logo

alexxnica / webgl-fundamentals Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gfxfundamentals/webgl-fundamentals

0.0 1.0 0.0 12.64 MB

WebGL lessons that start with the basics

Home Page: http://webglfundamentals.org

License: BSD 3-Clause "New" or "Revised" License

JavaScript 42.60% CSS 7.34% Shell 0.08% Python 0.11% HTML 49.88%

webgl-fundamentals's Introduction

WebGL Fundamentals

This is a series of lessons or tutorials about WebGL.

Unlike most WebGL lessons these are not based off of OpenGL. OpenGL is 20 years old. The lessons of OpenGL don't match well with WebGL. The APIs have changed too much. The ideas of OpenGL and OpenGL tutorials are out of date with WebGL, OpenGL ES 2.0 and the land of shaders.

I would argue that WebGL is actually a very simple API. What makes it appear complicated is the way in which it's used. The complications are added by the programmer. WebGL itself is simple.

These lessons try to show that simplicity and well as teach the fundamentals of 2D math and 3D math so readers can hopefully have an easier time writing their own WebGL programs and understanding the complexity that other programmers pile on top of simple WebGL.

This is work in progress. Feel free to contribute.

Contributing

Of course bug fixes are always welcome.

If you'd like to write a new article please try to always take one step at a time. Don't do 2 or more things in a single step. Explain any new math in the simplest terms possible. Ideally with diagrams where possible.

To build

The site is built into the out folder

Steps

git clone https://github.com/greggman/webgl-fundamentals.git
npm install
npm run build
npm start

now open your browser to http://localhost:8080

TO DO

A list of articles I'd like to write or see written

  • lighting
    • spot lighting
    • normal maps
    • shadow maps
  • text
    • pre-made glyph texture atlus
    • glyph cache
  • post processing
    • how to render to a texture (scene on cube)
    • DOF
    • glow
    • light rays
    • RGB glitch, CRT distortion, scanlines
    • color mapping
  • Creative coding
    • color palettes
    • indexed everything
    • tilemaps
  • code organization
    • scene graph
      • putting lights and camera in scene graph
  • Physically based rendering
  • WebGL 2.0

webgl-fundamentals's People

Contributors

astrak avatar billytrend avatar daiyi avatar dcrystalj avatar digitpain avatar erictheise avatar ght avatar greggman avatar kolosov-sergey avatar mattbilson avatar mrorz avatar sgoran avatar simhacker avatar timfish avatar vinci-mz avatar zemirco avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.