mattias d374918a94 removed compiled 7 年之前
..
html b9e7c5aa1f demos: webgl 7 年之前
js d374918a94 removed compiled 7 年之前
GLTypes.pas b9e7c5aa1f demos: webgl 7 年之前
GLUtils.pas b9e7c5aa1f demos: webgl 7 年之前
Mat4.pas b9e7c5aa1f demos: webgl 7 年之前
Matrix.pas b9e7c5aa1f demos: webgl 7 年之前
MemoryBuffer.pas b9e7c5aa1f demos: webgl 7 年之前
Noise.pas b9e7c5aa1f demos: webgl 7 年之前
Pas2JS_WebGL.lpi b9e7c5aa1f demos: webgl 7 年之前
Pas2JS_WebGL.pas b9e7c5aa1f demos: webgl 7 年之前
Pas2JS_WebGL_Minimal.lpi b9e7c5aa1f demos: webgl 7 年之前
Pas2JS_WebGL_Minimal.pas b9e7c5aa1f demos: webgl 7 年之前
Pas2JS_WebGL_OBJ.lpi b9e7c5aa1f demos: webgl 7 年之前
Pas2JS_WebGL_OBJ.pas b9e7c5aa1f demos: webgl 7 年之前
Pas2JS_WebGL_Terrain.lpi b9e7c5aa1f demos: webgl 7 年之前
Pas2JS_WebGL_Terrain.pas b9e7c5aa1f demos: webgl 7 年之前
README.txt b9e7c5aa1f demos: webgl 7 年之前
Terrain.pas b9e7c5aa1f demos: webgl 7 年之前
project1.lpi b9e7c5aa1f demos: webgl 7 年之前
project1.lpr b9e7c5aa1f demos: webgl 7 年之前
webgl2.pas b9e7c5aa1f demos: webgl 7 年之前

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