You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using a site where I need multiple canvas. I've looked into the <View /> component and tried using that. In that case, I can't have multiple different <SoftShadows /> components, which makes sense, since it's all rendered to the same canvas. However, I will be using two different canvases because the way our site is built. However, even in the case where I'm using two different canvases, I get a fragment shader issue (see image below).
Honestly, I'm not sure. It seems like you'd need some sort of validation for the fragment shader if it already exists or something. I'm not really knowledgeable enough with shaders to know unfortunately.
The text was updated successfully, but these errors were encountered:
three
version: 0.163.0@react-three/fiber
version: 8.16.1@react-three/drei
version: 9.105.4node
version: 20.8.1npm
(oryarn
) version: 10.1.0Problem description:
I'm currently using a site where I need multiple canvas. I've looked into the
<View />
component and tried using that. In that case, I can't have multiple different<SoftShadows />
components, which makes sense, since it's all rendered to the same canvas. However, I will be using two different canvases because the way our site is built. However, even in the case where I'm using two different canvases, I get a fragment shader issue (see image below).Relevant code:
Error replicated here:
https://codesandbox.io/p/sandbox/interesting-cannon-tm8m2m
Suggested solution:
Honestly, I'm not sure. It seems like you'd need some sort of validation for the fragment shader if it already exists or something. I'm not really knowledgeable enough with shaders to know unfortunately.
The text was updated successfully, but these errors were encountered: