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
So I'm currently struggling with this problem where I'm trying to update the color of a single plane segment. I've tried a lot of things but can't quite figure out how it works. I hope someone can help me here.
So my plane looks like this:
// planeSize is 31 <meshposition={[0,-0.001,0]}rotation={[-Math.PI/2,0,0]}receiveShadowref={mesh}castShadowonClick={(e)=>{ ... }}onPointerMove={(e)=>{ ... }}><planeGeometryargs={[planeSize,planeSize,planeSize,planeSize]}{...floor}// this is for raycasting, const floor = new Plane(new Vector3(), 0)ref={ground}attach="geometry"name="floor"/><meshStandardMaterialside={DoubleSide}vertexColorsattach="material"/></mesh>
Many solutions I have found have used faces, but there is no faces attribute defined. I am also very wondering about this, since I am using a planeGeometry and not a planeBufferGeometry.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
So I'm currently struggling with this problem where I'm trying to update the color of a single plane segment. I've tried a lot of things but can't quite figure out how it works. I hope someone can help me here.
So my plane looks like this:
I also added a color attribute to the plane.
Many solutions I have found have used faces, but there is no faces attribute defined. I am also very wondering about this, since I am using a planeGeometry and not a planeBufferGeometry.
Beta Was this translation helpful? Give feedback.
All reactions