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

ShaderInput vector comparison is not stable for small numbers #827

Closed
rdb opened this issue Jan 3, 2020 · 0 comments
Closed

ShaderInput vector comparison is not stable for small numbers #827

rdb opened this issue Jan 3, 2020 · 0 comments
Assignees
Labels
bug
Milestone

Comments

@rdb
Copy link
Member

@rdb rdb commented Jan 3, 2020

One'd expect one of these to return True:

from panda3d.core import *

i1 = ShaderInput('a', Vec4(1e-9, 0, 0, 0))
i2 = ShaderInput('a', Vec4(1e-8, 0, 0, 0))

print(i1 < i2)
print(i1 == i2)
print(i1 > i2)
False
False
False
@rdb rdb added the bug label Jan 3, 2020
@rdb rdb added this to the 1.10.5 milestone Jan 3, 2020
@rdb rdb self-assigned this Jan 3, 2020
rdb added a commit that referenced this issue Jan 3, 2020
@rdb rdb closed this in fe1ecd5 Jan 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.