Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by sombreros · Oct 16, 2016 at 07:22 AM · lightingwebglquality

weird shading/lighting issue with QualitySettings.SetQualityLevel in WebGL

I implemented a way to change quality of the game using the V key to cycle through the 6 default quality levels. When I tried playing the game in editor, everything works as expected. When I played the built game in WebGL, toggling quality also makes the scene look darker, and somewhat tanner or something. Continuing to press V until you toggle back to "Fantastic" doesn't fix it either, you have to refresh the game. Any fixes?

Here's an itch.io link if you want to see the issue in action. link

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image sombreros · Oct 16, 2016 at 08:13 AM 0
Share

Well I've found that it probably has something to do with the 'Reflection Intensity" variable under Lighting > Scene, because setting that to 0 makes the game in editor look identical to the problem WebGL version. I added a line to my quality change code to set that to 1 every time the quality is changed. Since the problem doesn't occur in the editor, I tested by having the Lighting > Scene panel open and manually setting reflection intensity to 0, which seemed to work, as pressing V to change quality also set reflection intensity back to 1 and made the scene look correct. However, when I built and ran the game, the problem was still there. This is definitely gonna be a pain to troubleshoot cause rebuilding the game takes about 5 $$anonymous$$utes each time.

avatar image sombreros sombreros · Oct 16, 2016 at 08:19 AM 0
Share

Checking under the Quality panel, I found that for qualities 0 -> 2, "Real Time Reflection Probes" is turned off. I'm gonna try rebuilding the code with V only set to toggle between qualities 3 through 5, to see if that's the issue.

avatar image sombreros sombreros · Oct 16, 2016 at 08:28 AM 0
Share

Ok that worked, now I'm gonna try enabling "Real Time Reflection Probes" on all quality levels and letting v toggle all qualities again.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

blend4web is better than unity WebGl ? 1 Answer

Raymarching - bad shadows/light quality on fractals 0 Answers

On Android. How many lights can you have in a Scene or the total game? 1 Answer

Make game start looking nice 1 Answer

Light quality 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges