mattias 3adee3daa4 demo webgl: fixed compile 6 years ago
..
html 62fa6f15e6 demo: webgl: restore 6 years ago
GLTypes.pas 3adee3daa4 demo webgl: fixed compile 6 years ago
GLUtils.pas 3adee3daa4 demo webgl: fixed compile 6 years ago
Mat4.pas 3adee3daa4 demo webgl: fixed compile 6 years ago
Matrix.pas 62fa6f15e6 demo: webgl: restore 6 years ago
MemoryBuffer.pas 3adee3daa4 demo webgl: fixed compile 6 years ago
Noise.pas 62fa6f15e6 demo: webgl: restore 6 years ago
Pas2JS_WebGL.lpi 62fa6f15e6 demo: webgl: restore 6 years ago
Pas2JS_WebGL.pas 3adee3daa4 demo webgl: fixed compile 6 years ago
Pas2JS_WebGL_Minimal.lpi 62fa6f15e6 demo: webgl: restore 6 years ago
Pas2JS_WebGL_Minimal.pas 3adee3daa4 demo webgl: fixed compile 6 years ago
Pas2JS_WebGL_OBJ.lpi 62fa6f15e6 demo: webgl: restore 6 years ago
Pas2JS_WebGL_OBJ.pas 3adee3daa4 demo webgl: fixed compile 6 years ago
Pas2JS_WebGL_Terrain.lpi 62fa6f15e6 demo: webgl: restore 6 years ago
Pas2JS_WebGL_Terrain.pas 3adee3daa4 demo webgl: fixed compile 6 years ago
README.txt 62fa6f15e6 demo: webgl: restore 6 years ago
Terrain.pas 3adee3daa4 demo webgl: fixed compile 6 years ago
project1.lpi 62fa6f15e6 demo: webgl: restore 6 years ago
project1.lpr 62fa6f15e6 demo: webgl: restore 6 years ago

README.txt

Contributed by Ryan Joseph

# Pas2JS-WebGL
WebGL demo with Pas2JS

Most basics of WebGL:

- Vertex data packed into byte array for interleaved vertex data
- Shaders
- Matricies
- Animation
- OBJ Loader
- Lighting

Most basic example possible:

http://htmlpreview.github.io/?https://raw.githubusercontent.com/genericptr/Pas2JS-WebGL/master/html/Pas2JS_WebGL_Minimal.html

Interleaved vertex data:

http://htmlpreview.github.io/?https://raw.githubusercontent.com/genericptr/Pas2JS-WebGL/master/html/Pas2JS_WebGL.html

OBJ Loader with lighting:

http://htmlpreview.github.io/?https://raw.githubusercontent.com/genericptr/Pas2JS-WebGL/master/html/Pas2JS_WebGL_OBJ.html

Terrain generation using Perlin noise (NOTE: can't be viewed online currently until I figure out the image loading security issue):

http://htmlpreview.github.io/?https://raw.githubusercontent.com/genericptr/Pas2JS-WebGL/master/html/Pas2JS_WebGL_Terrain.html