We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
three
@types/three
three-stdlib
Setting the color of a Line seems to no longer work with drei, presumably caused by #335 either directly or indirectly.
Line
import { Vector3 } from 'three' import { Canvas } from '@react-three/fiber' import { Line, OrbitControls } from '@react-three/drei' import { GeometryUtils } from 'three-stdlib' const points = GeometryUtils.hilbert3D(new Vector3(0), 5).map((p) => [p.x, p.y, p.z]) function BasicLine() { return <Line points={points} color="red" lineWidth={3} /> } export default function App() { return ( <Canvas> <ambientLight intensity={Math.PI / 2} /> <spotLight position={[10, 10, 10]} angle={0.15} penumbra={1} decay={0} intensity={Math.PI} /> <pointLight position={[-10, -10, -10]} decay={0} intensity={Math.PI} /> <BasicLine /> <OrbitControls /> </Canvas> ) }
CodeSandbox
?
The text was updated successfully, but these errors were encountered:
Likely multiplied by 0 (or initial values) when vertex colors aren't specified.
0
Sorry, something went wrong.
🎉 This issue has been resolved in version 2.29.2 🎉
The release is available on:
Your semantic-release bot 📦🚀
Successfully merging a pull request may close this issue.
three
version: any@types/three
version: anythree-stdlib
version: 2.29.0 and 2.29.1Problem description:
Setting the color of a
Line
seems to no longer work with drei, presumably caused by #335 either directly or indirectly.Relevant code:
CodeSandbox
Suggested solution:
?
The text was updated successfully, but these errors were encountered: