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

Use epsilon to fix Cube Map premultipled alpha test #4966

Merged
merged 4 commits into from Feb 8, 2017

Conversation

shehzan10
Copy link
Member

Related to #4565 (comment)

Copy link
Contributor

@lilleyse lilleyse left a comment

Choose a reason for hiding this comment

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

@pjcozzi do you also want to look here since it involves modifying the webgl tests.

if (!CesiumMath.equalsEpsilon(rgba[0], expected[0], epsilon) ||
!CesiumMath.equalsEpsilon(rgba[1], expected[1], epsilon) ||
!CesiumMath.equalsEpsilon(rgba[2], expected[2], epsilon) ||
!CesiumMath.equalsEpsilon(rgba[3], expected[3], epsilon)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

toReadPixels uses all four arguments of equalsEpslion. Worth doing the same here.

if (!CesiumMath.equalsEpsilon(rgba[0], expected[0], 0, epsilon) ||

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

@pjcozzi
Copy link
Contributor

pjcozzi commented Feb 8, 2017

Looks good.

@pjcozzi pjcozzi merged commit 7b88301 into CesiumGS:master Feb 8, 2017
@shehzan10 shehzan10 deleted the contextToRender-epsilon branch February 10, 2017 22:07
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.

None yet

3 participants