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 2ndReality · Aug 29, 2019 at 12:14 PM · shadershadersreflection

Disable fresnel in standard shader

Hi!
I found out that the issue I am having might have to do with the standard fresnel that gets applied to an object when using the standard Unity shader.
Using the standard Unity shader, even when setting Smoothness/Metallicness to 0, there will still be a kind of reflective effect added to the material that is dependent on the POV from the camera.
I would like to not have that effect in my game, as I am going for a low poly minimalistic look. The only built-in material I have found in Unity which doesn't have this fresnel effect, is a VertexLit (only directional lights) mobile shader. But that means I can't make use of cookies (and probably other functionalities). Is there something I can change in the code of the shader to disable this effect? Or should I write my own shader?
I appreciate any and all suggestions!
EDIT: The effect I am talking about is the one you can see in this screenshot. The plane gets some kind of reflective gradient and moves with the camera. Maybe I was using the wrong term and this isn't fresnel after all? screenshot

screenshot-22.png (396.5 kB)
Comment
Add comment · Show 1
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 dan_wipf · Aug 30, 2019 at 07:56 AM 0
Share

i’d say build your own shader, or atleast search the web for the shader you’re looking for!

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Namey5 · Aug 30, 2019 at 11:16 AM

Fresnel shading is an integral part of physically-based BRDFs (including the standard shader). No other shader in Unity takes fresnel into account, however, so you should be able to use the legacy diffuse/specular shaders in its place.

Comment
Add comment · Show 8 · Share
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 2ndReality · Aug 30, 2019 at 11:46 AM 0
Share

Then maybe the effect I'm talking about isn't fresnel after all? The effect I'm having a problem with is the one you see in this screenshot: here
The gradient/reflection you see on the plane, depending on the distance to the camera, is something I do not want. The legacy shaders create this effect as well, except for the Diffuse Fast one, but that shader doesn't work with cookies.

avatar image Namey5 2ndReality · Aug 30, 2019 at 01:02 PM 1
Share

I get what you mean - at first glance it definitely looks like some form of rim lighting. Have you tried disabling ambient lighting/changing to a solid colour rather than a gradient/skybox?

avatar image 2ndReality Namey5 · Aug 30, 2019 at 01:29 PM 0
Share

The reflection is still there when having no skybox material, and a solid ambient colour. I just can't figure out where it comes from.

Show more comments

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

187 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Self-Illum Fresnel Reflective Bumped Specular issue 0 Answers

Standard shader looks incorrect on mobile (weird colors) 1 Answer

Reflection shader with alpha channel 2 Answers

how to do color separation in specular reflections 1 Answer

Blend Cubemaps in reflection probe 1 Answer


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