Michaël Van Canneyt 2626eef7c3 * WASI runtime embedding 3 年之前
..
html a466924024 demo webgl: undo remove 6 年之前
GLTypes.pas 4730228187 demo: webgl: fixed compile 6 年之前
GLUtils.pas 20be28d765 demo: updated webgl 6 年之前
Mat4.pas 4730228187 demo: webgl: fixed compile 6 年之前
Matrix.pas a466924024 demo webgl: undo remove 6 年之前
MemoryBuffer.pas 4730228187 demo: webgl: fixed compile 6 年之前
Noise.pas 20be28d765 demo: updated webgl 6 年之前
Pas2JS_WebGL.lpi 20be28d765 demo: updated webgl 6 年之前
Pas2JS_WebGL.pas 4730228187 demo: webgl: fixed compile 6 年之前
Pas2JS_WebGL_Minimal.lpi 20be28d765 demo: updated webgl 6 年之前
Pas2JS_WebGL_Minimal.pas 4730228187 demo: webgl: fixed compile 6 年之前
Pas2JS_WebGL_OBJ.lpi 20be28d765 demo: updated webgl 6 年之前
Pas2JS_WebGL_OBJ.pas 20be28d765 demo: updated webgl 6 年之前
Pas2JS_WebGL_Terrain.lpi 20be28d765 demo: updated webgl 6 年之前
Pas2JS_WebGL_Terrain.pas 20be28d765 demo: updated webgl 6 年之前
README.txt a466924024 demo webgl: undo remove 6 年之前
Terrain.pas e922c46cea demo: webgl: fixed compile 6 年之前
project1.lpi a466924024 demo webgl: undo remove 6 年之前
project1.lpr a466924024 demo webgl: undo remove 6 年之前
webgl_demos.lpg 2626eef7c3 * WASI runtime embedding 3 年之前

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