OpenGL in WebGL2

Part 6, PBR

The following programs of LearnOpenGl are implemented in javascript / typescript, using WebGl2. Not all browsers support WebGl2. The latest versions of Google Chrome and Windows Edge can be used to view the results.

Chapter 44

lighting

lighting textured

Chapter 45

ibl cubemap (use keys space, '1' and '2'; to read a .hdr file we use part of enkimute/hdrpng.js, it has a MIT licence)

ibl irradiance

Chapter 46

brdf lutt map

test reading dds (to read .dds file we use part of code made by Brandon Jones; licence is included)

ibl specular

The texture files for the program iblSpecularTextured.ts are not copied to github, and so that program does not give the right output. ibl specular textured

Chapter ChGltf

This is a continuation of code presented in part 3, to read a gltf file. There only meshes were loaded. Here code is added to read materials from a gltf file.

load gltf waterbottle

load gltf scene2

load gltf scene3

load gltf scene4