mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-21 15:29:30 -07:00
2/3
This commit is contained in:
@@ -58,6 +58,15 @@ export default async (canvas, config) => {
|
||||
// }
|
||||
resize();
|
||||
|
||||
window.ripples = [0,0,0]
|
||||
window.onclick = (e) => { // ripple init
|
||||
console.log(e)
|
||||
window.ripples = [Date.now(), e.clientX, e.clientY]
|
||||
console.log(ripples)
|
||||
|
||||
}
|
||||
|
||||
|
||||
const regl = createREGL({
|
||||
canvas,
|
||||
extensions: ["OES_texture_half_float", "OES_texture_half_float_linear"],
|
||||
|
||||
Reference in New Issue
Block a user