[feat]: three should extend the catalogue of r3f

Open
#2,032 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
react, three.js, typescript
Domain
frontend

Research direction

The issue names shaderMaterial, extend, and the exported animated object, but provides no files or tests. Start by tracing those entry points and determine how custom r3f elements are currently typed and animated. Done would mean a custom ImageFadeMaterial can be animated, with the requested integration exposed through animated.

Written by the indexing model from the issue text.

Description

area: three kind: request
A clear and concise description of what the feature is

Say I my make my own native three element in r3f:

const ImageFadeMaterial = shaderMaterial(uniforms, vertexShader, fragmenShader);
extend({ ImageFadeMaterial })

Then at the very least, it would be good that typescript new this component could be animated, or even better it would be great if the component was added to the animated object we export:

<animated.imageFadeMaterial />
Why should this feature be included?

Including this feature would make a more seamless integration between r3f & rs

Please provide an example for how this would work

No response

Dominant language
TypeScript
Stars
29.3k
Forks
1.2k
Avg merge
3d 15h
Merged PRs (30d)
17

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pmndrs/react-spring

All issues in pmndrs/react-spring

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.