• Stars
    star
    531
  • Rank 83,526 (Top 2 %)
  • Language
    HTML
  • License
    MIT License
  • Created over 7 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Rendering algorithms implemented in raw WebGL 2.

WebGL 2 Examples

Rendering algorithms implemented in raw WebGL 2.

Currently include:

All examples are implemented in a single HTML file with minimal use of functions, modules, classes or other abstractions. The goal is to allow the reader to easily see, in sequential order, all GL calls that are made.

These examples can be thought of as companion to Shrek Shao and Trung Le's excellent WebGL 2 Samples Pack. While their samples demonstrate individual features of WebGL 2, this project aims to demonstrate how those features can be used to implement commonly-used algorithms.

Contributing

Contributions are welcome! Especially new examples that show features that aren't included in the current set. The only requirement is that new examples use a similar basic structure:

  • All GL calls are made at the top level (without being split up into "helper functions"). A reader should be able to read through the source HTML and see all GL calls that are made, in the order that they made.
  • Shader code should be included at the top of the HTML file in script elements.
  • Small utility functions are fine (but shouldn't contain any GL calls!) and should go in utils/utils.js.
  • Use glMatrix for the math.

More Repositories

1

space-shooter.c

A cross-platform, top-down 2D space shooter written in C using only platform libraries.
C
1,337
star
2

picogl.js

A minimal WebGL 2 rendering library
JavaScript
788
star
3

simple-opengl-loader

An extensible, cross-platform, single-header C/C++ OpenGL loader library.
C
86
star
4

webgpu-examples

Rendering algorithms implemented in WebGPU.
JavaScript
79
star
5

glcheck

A testing framework for WebGL 1 and 2 applications
JavaScript
62
star
6

nano-server

An ultra-lightweight node.js HTTP server for web development.
JavaScript
60
star
7

mercator-gl

Tiny library for GLSL web mercator projections
JavaScript
45
star
8

xogl

Minimal OpenGL loader for X11.
C
23
star
9

xaudio2-c-demo

A small example of using the Windows XAudio2 API in C
C
20
star
10

scroll-em

A JavaScript library for creating scrolling animations.
JavaScript
19
star
11

cervit

Minimal, multi-threaded POSIX HTTP 1.1 server written in C using only system libraries.
C
19
star
12

tesseract-explorer

Interactive visualization of a 4-dimensional tesseract
JavaScript
17
star
13

gl-utils

A bare-bones WebGL library.
JavaScript
16
star
14

mesh-quantization-example

A minimal example of vertex quantization.
JavaScript
11
star
15

weekendraytracerjs

JavaScript port of the path tracing algorithm from Peter Shirley's "Ray Tracing in One Weekend"
JavaScript
11
star
16

gaza-data

Open JSON and CSV formatted data documenting the Palestinian and Israeli lives lost in the July 2014 attack on Gaza.
JavaScript
6
star
17

sketches

Daily graphics sketches
C
6
star
18

mesh-compression-examples

JavaScript
5
star
19

oFactory

A simple JavaScript library for creating factories.
JavaScript
4
star
20

picogl-tutorial

PicoGL.js tutorial source code.
HTML
3
star
21

webglx

Unified context API for WebGL 1 and 2.
JavaScript
3
star
22

simple-live-server

A mininal HTTP server with live reload capabilities.
TypeScript
2
star
23

climb

An HTML5 minimalist vertical platforming game.
JavaScript
2
star
24

khronos-webgl-workshop1

CSS
2
star
25

nywebperf-biodigital

CSS
2
star
26

in-gaza

An interactive memorial to the Gazans killed during Israeli Operation Protective Edge, July 2014.
JavaScript
2
star
27

siggraph-2018

CSS
1
star
28

tgame

A very basic JavaScript game engine.
JavaScript
1
star
29

space-music

JavaScript
1
star
30

nanogl.js

Moved to https://github.com/tsherif/picogl.js
HTML
1
star
31

egypt-population

Population density map of Egypt
JavaScript
1
star
32

tareksherif

Code for tareksherif.net
JavaScript
1
star
33

webgl2bugs

Minimal examples of bugs found in WebGL 2
HTML
1
star
34

asm-experiments

Random assembly sketches
Assembly
1
star