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

Shadow map fixes #4615

Merged
merged 3 commits into from
Nov 7, 2016
Merged

Shadow map fixes #4615

merged 3 commits into from
Nov 7, 2016

Conversation

lilleyse
Copy link
Contributor

@lilleyse lilleyse commented Nov 6, 2016

Merge #4614 first

Related to #4560

I changed 160581375.0 to 16581375.0. There was a typo in the original blog post: http://aras-p.info/blog/2009/07/30/encoding-floats-to-rgba-the-final/#comment-553113170. This affected a couple areas, but I didn't notice any change in behavior after.

Now polygonOffset is enabled unless the user is on IE, on Edge, or using ANGLE without depth texture support.

@pjcozzi
Copy link
Contributor

pjcozzi commented Nov 7, 2016

I changed 160581375.0 to 16581375.0. There was a typo in the original blog post...

Wow, good catch!

This looks good to merge after #4614.

@@ -187,7 +187,7 @@ define([
// In IE11 polygon offset is not functional.
// TODO : Also disabled for Chrome (ANGLE) temporarily. Re-enable once https://github.com/AnalyticalGraphicsInc/cesium/issues/4560 is resolved.
var polygonOffsetSupported = true;
if (FeatureDetection.isInternetExplorer() || (FeatureDetection.isChrome() && FeatureDetection.isWindows())) {
if (FeatureDetection.isInternetExplorer() || FeatureDetection.isEdge() || ((FeatureDetection.isChrome() || FeatureDetection.isFirefox()) && FeatureDetection.isWindows() && !context.depthTexture)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update the TODO comment to reflect the full scope of this check, since it's now out of date.

@lilleyse
Copy link
Contributor Author

lilleyse commented Nov 7, 2016

Fixed TODO

@mramato mramato merged commit e7bc475 into master Nov 7, 2016
@mramato mramato deleted the shadow-map-fixes branch November 7, 2016 15:38
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.

3 participants