mattias d374918a94 removed compiled 7 years ago
..
html b9e7c5aa1f demos: webgl 7 years ago
js d374918a94 removed compiled 7 years ago
GLTypes.pas b9e7c5aa1f demos: webgl 7 years ago
GLUtils.pas b9e7c5aa1f demos: webgl 7 years ago
Mat4.pas b9e7c5aa1f demos: webgl 7 years ago
Matrix.pas b9e7c5aa1f demos: webgl 7 years ago
MemoryBuffer.pas b9e7c5aa1f demos: webgl 7 years ago
Noise.pas b9e7c5aa1f demos: webgl 7 years ago
Pas2JS_WebGL.lpi b9e7c5aa1f demos: webgl 7 years ago
Pas2JS_WebGL.pas b9e7c5aa1f demos: webgl 7 years ago
Pas2JS_WebGL_Minimal.lpi b9e7c5aa1f demos: webgl 7 years ago
Pas2JS_WebGL_Minimal.pas b9e7c5aa1f demos: webgl 7 years ago
Pas2JS_WebGL_OBJ.lpi b9e7c5aa1f demos: webgl 7 years ago
Pas2JS_WebGL_OBJ.pas b9e7c5aa1f demos: webgl 7 years ago
Pas2JS_WebGL_Terrain.lpi b9e7c5aa1f demos: webgl 7 years ago
Pas2JS_WebGL_Terrain.pas b9e7c5aa1f demos: webgl 7 years ago
README.txt b9e7c5aa1f demos: webgl 7 years ago
Terrain.pas b9e7c5aa1f demos: webgl 7 years ago
project1.lpi b9e7c5aa1f demos: webgl 7 years ago
project1.lpr b9e7c5aa1f demos: webgl 7 years ago
webgl2.pas b9e7c5aa1f demos: webgl 7 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