Skip to content
New issue

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

wrap this in <group> to simplify code #12

Open
BoxedFruits opened this issue Jan 14, 2023 · 0 comments
Open

wrap this in <group> to simplify code #12

BoxedFruits opened this issue Jan 14, 2023 · 0 comments

Comments

@BoxedFruits
Copy link
Owner

<sprite
ref={spriteRef}
scale={3}
position={[0, 0, .6]}
{...props}>
<spriteMaterial
map={orbTexture}
alphaMap={orbTexture}
transparent={true}
opacity={1}
blending={AdditiveBlending}
depthWrite={false}
toneMapped={false}
/>
</sprite>
<mesh
ref={sphereRef}
scale={.36}
position={[0, 0, .6]}
{...props}>
<sphereGeometry />
<meshPhongMaterial
color='white'
emissive='white'
emissiveIntensity={40.25}
toneMapped={false}
transparent={true}
opacity={0.45}
/>
</mesh>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant