DriftTexture · function
addBias
Add bias[cols] to every one of rows rows of x, in place.
Explained in DriftTexture.
function addBias(x: Float32Array, rows: number, cols: number, bias: Float32Array): voidimport { addBias } from '@driftengine/texture';Parameters
| Parameter | Type | Description |
|---|---|---|
x | Float32Array | |
rows | number | |
cols | number | |
bias | Float32Array |