Bump Mapping with javascript and glsl
问题 /** * A class creating buffers for a textured box to render it with WebGL */ class RasterTextureBox { /** * Creates all WebGL buffers for the textured box * 6 ------- 7 * / | / | * 3 ------- 2 | * | | | | * | 5 -----|- 4 * | / | / * 0 ------- 1 * looking in negative z axis direction * @param {WebGLContext} gl - The canvas' context * @param {Vector} minPoint - The minimal x,y,z of the box * @param {Vector} maxPoint - The maximal x,y,z of the box */ constructor(gl, minPoint, maxPoint, texture)