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

Support fp64 in GPUInterpolationTransition #8807

Merged
merged 1 commit into from
Apr 19, 2024
Merged

Conversation

Pessimistress
Copy link
Collaborator

Closes #7780

Background

Transition was previously calculated as (equivalent to)

result = mix(from, to, t);
result64Low = mix(from64Low, to64Low, t);

Which is mathematically incorrect.

Change List

  • Support double attributes in GPUInterpolationTransition

@Pessimistress
Copy link
Collaborator Author

@donmccurdy See TODO in onUpdate: Unfortunately it doesn't work with https://github.com/visgl/luma.gl/pull/2032/files#r1523847153

@coveralls
Copy link

Coverage Status

coverage: 90.024% (+0.01%) from 90.012%
when pulling acf15d4 on x/transition-fp64
into 8827177 on master.

moduleSettings: {},
varyings: ['vCurrent', 'vCurrent64Low'],
// @ts-expect-error WebGLRenderPipeline only prop TODO - support in RenderPipeline?
bufferMode: GL.INTERLEAVED_ATTRIBS,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Pessimistress Pessimistress merged commit 1b9c5a0 into master Apr 19, 2024
4 checks passed
@Pessimistress Pessimistress deleted the x/transition-fp64 branch April 19, 2024 22:08
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

Successfully merging this pull request may close these issues.

[Bug] Bumpy animation with getTransition on IconLayer and ScatterplotLayer
4 participants