skip to Main Content

Javascript – i create circle around mouse pointer but problem is that it display perfect in my pc ,when test in laptop then it not display around mouse pointer

fragment code : export const fragment = `varying vec2 vUv; uniform vec2 viewport; uniform vec2 uMouse; float createCircle() { vec2 viewportUv = gl_FragCoord.xy / viewport; float viewportAspect = viewport.x / viewport.y; vec2 mousePoint = vec2(uMouse.x, 1.0 - uMouse.y); float circleRadius…

VIEW QUESTION

Reactjs – onMouseDown is not working in Spline-react

import Spline from '@splinetool/react-spline'; import { useRef } from 'react'; export default function App() { function onLoad(spline) { const obj = spline.findObjectByName('Clink'); // console.log(spline.style) spline.style = {width:"100vw"} // spline.camera.position.z = 0 // spline.canvas.width = "1920px" // let can = Object.keys(spline.canvas)…

VIEW QUESTION
Back To Top
Search