mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-05 14:47:53 +02:00
30 lines
925 B
Plaintext
30 lines
925 B
Plaintext
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
|