let pixelRatio = 1
let renderer, scene, camera, material, pointerPos, clock
let isPointerActive = false
const FORCE_RADIUS = 800
const POINTER_FORCE = 400
// options
kumaleon.options = {
onInit: () => {
// called when the app is initialized
// you can use three.js r141 after iniialization
renderer = new THREE.WebGLRenderer()
scene = new THREE.Scene()
camera = new THREE.OrthographicCamera(-1, 1, 1, -1, 0.1, 4)
camera.position.z = 2
camera.lookAt(0, 0, 0)
camera.matrixAutoUpdate = false
clock = new THREE.Clock()
material = new THREE.ShaderMaterial({
transparent: true,
vertexShader: `
void main(void) {
gl_Position = vec4(position, 1.0);
}
`,
// fragmeneShader code