Giter Site home page Giter Site logo

webgl's People

Contributors

antonkhorev avatar esangel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webgl's Issues

noob question

hello, i am starting out with opengl and git.
i am familiar with glsl, but I am unsure how can I practice with code from your Chapter0 for example.

I do not want to rip stuff, but learn.
So can I for example copy mandelbrot1.html code into my site?
but what about .js sources?

could someone help me, I would be grateful!

Update the code to 2021 practices?

Would you consider a series of PRs that update the code to slightly more modern practices? Some are minor, some less so.

Examples might include

  • Remove all uses of var for let and const

    var is basically considered bad practice at this point

  • no need for `type="text/javascript"

    this is not needed for script tags

  • stop using window.onload

    Just move your script tags to the bottom or use defer

  • consider using es6 modules for loading scripts

  • use requestAnimationFrame instead of requestAnimFrame

    There's no need for the polyfill in 2021

  • put the shaders in multiline template strings

    They've been in every browser since 2010 or earlier

  • get rid of "Oops, your browser doesn't support canvas"

    There are no browser that don't support canvas in 2021

Please turn on github pages

Lots of students use these samples and then ask questions on stackoverflow. They have no way to easily include the libraries here in their questions

Click settings then under Github Pages set the Source to "master"

Screen Shot 2019-04-07 at 20 09 35

Now students will be able to include the libraries on stackoverflow using

<script src="https://esangel.github.io/WebGL/Common/webgl-utils.js"></script>
<script src="https://esangel.github.io/WebGL/Common/initShaders.js"></script>
<script src="https://esangel.github.io/WebGL/Common/MV.js"></script>

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.