#pas2js #pascal #webgl #example #demo #js #javascript #web-gamedev #gamedev #web

Ryan Joseph a7fd249d38 Manual texture loading with CORS há 7 anos atrás
html a7fd249d38 Manual texture loading with CORS há 7 anos atrás
.gitignore af2ab29d8d copy and paste bug há 7 anos atrás
GLTypes.pas 76857328f8 Terrain demo há 7 anos atrás
GLUtils.pas 76857328f8 Terrain demo há 7 anos atrás
Mat4.pas 78eaf2af20 OBJ loader, minimal example há 7 anos atrás
Matrix.pas 76857328f8 Terrain demo há 7 anos atrás
MemoryBuffer.pas 76857328f8 Terrain demo há 7 anos atrás
Noise.pas 76857328f8 Terrain demo há 7 anos atrás
Pas2JS_WebGL.js 76857328f8 Terrain demo há 7 anos atrás
Pas2JS_WebGL.pas 76857328f8 Terrain demo há 7 anos atrás
Pas2JS_WebGL.sublime-project 78eaf2af20 OBJ loader, minimal example há 7 anos atrás
Pas2JS_WebGL.sublime-workspace 78eaf2af20 OBJ loader, minimal example há 7 anos atrás
Pas2JS_WebGL_Minimal.js 78eaf2af20 OBJ loader, minimal example há 7 anos atrás
Pas2JS_WebGL_Minimal.pas 78eaf2af20 OBJ loader, minimal example há 7 anos atrás
Pas2JS_WebGL_OBJ.js 76857328f8 Terrain demo há 7 anos atrás
Pas2JS_WebGL_OBJ.pas a7fd249d38 Manual texture loading with CORS há 7 anos atrás
Pas2JS_WebGL_Terrain.js a7fd249d38 Manual texture loading with CORS há 7 anos atrás
Pas2JS_WebGL_Terrain.pas a7fd249d38 Manual texture loading with CORS há 7 anos atrás
README.md 8e9aa7c428 Update README.md há 7 anos atrás
Terrain.pas a7fd249d38 Manual texture loading with CORS há 7 anos atrás
webgl2.pas 9ca87e09b4 initial commit há 7 anos atrás

README.md

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