Avoid rendering outside WebGL layer and source extent
This commit is contained in:
@@ -962,6 +962,15 @@ class WebGLHelper extends Disposable {
|
||||
this.getGL().uniform1f(this.getUniformLocation(uniform), value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Give a value for a vec4 uniform
|
||||
* @param {string} uniform Uniform name
|
||||
* @param {Array<number>} value Array of length 4.
|
||||
*/
|
||||
setUniformFloatVec4(uniform, value) {
|
||||
this.getGL().uniform4fv(this.getUniformLocation(uniform), value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Give a value for a standard matrix4 uniform
|
||||
* @param {string} uniform Uniform name
|
||||
|
||||
Reference in New Issue
Block a user