Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在反应三纤维中添加点光源,它似乎遵循与通常的 three.js 语法不同的语法。
所有 three.js 对象都将被视为原生 JSX 元素。一般规则是 React Three Fiber 组件在驼峰式版本下可用。因此这样做是为了添加一个像这样的点光源 -
<pointLight position={[0, 10, -5]} intensity={1} color="#fff" />