- Home /
How to remove unwanted shine (smoothness) on terrain?
Is there any way to turn off the smoothness without reverting to the legacy shader?
What you can see on the screenshot below is a unity 5 terrain with the new shader and some textures. Given the camera/terrain angle and a directional light, a very bright shinny area appears over that texture (since it is the cliff texture I guess). The texture itself is a png with NO alpha channel. Changing the smoothness factor towards 1 just concentrates the shine, but it won't disappear.
It seems really unnatural to have shinning dirt and rocks :S (would look good for metallic/lustrous floors)
If you are using the standard shader, set the metallic to zero or a low value.
Thx but as you can see on the screenshot, the metallic is already set to 0. The parameter that directly affects this shiny area is the Smoothness but neither 0 or 1 removes it, only changes its size and intensity. I need to completely remove the shine.
click on the terrain mesh and see what is used in the reflection probe. Set it at "off".
@screenname_taken Reflection Probes was already set to Off in the terrain :S
Answer by ahgr123 · May 23, 2015 at 05:11 PM
You NEED alpha channel, if theres none it will be intepretated as white which is high shine, add alpha channel in your image editing program and color it to black. It solved issues with shine for me.
Thx, this works. But wow, I have to say this is bad design from Unity. Having to add a completely black (fully transparent) alpha channel to a texture to remove a shine that's not useful at all for opaque/diffuse textures is stupid for several reasons:
jpg doesn't support alpha
Windows will preview such textures (at least for .png ones) as a complete transparent image, making it hard to spot.
Image edition programs will show a fully transparent image... u have to deactivate the alpha channel to work on it.
The extra channel takes more space. By default the jpg texture was compressed to DXT1 for around 170$$anonymous$$b. The same texture as png with alpha channel was compressed by unity to DXT5 for around 340$$anonymous$$b.
Agree, and it also takes lots of time to do.... I mean one texture is good, but when you have them 300 ? Then you are f**ed.
$$anonymous$$eep in $$anonymous$$d that if you import the image with "read / write access" you can add / change the alpha values at runtime.
But i agree that it would be more useful if they either provide a seperate shader which doesn't calculate specular highlight at all, or have some kind of option to turn it off. The first solution would make more sense since it would increase the performance.
Can u Pls pls show me how to fix this metallic shine problem..? i would be rly glad.. iam enough dumb and new to this area and this unwanted $$anonymous$$ETALLIC shine is causing disaster in my terrain texture..
i wish you would help me with a detailed STEP-BY-STEP approach / video approach..
Thanks
PS: if i didnt reply to this msg here.. then i rly wish you to reply me to my email
gmail = ga.abdulsalam@gmail.com
Ahmed Abdul Salam... here it is..it's not my video though
Answer by Damiankarlfriston · Aug 25, 2015 at 08:21 PM
I don't know of this helps anyone, but I just came on with the same question. If you click on the terrain gear icon and click on "Material" and set it to "custom" that took away the glossy shine for me. I'm not very experienced with Unity so I don't know how this could negatively impact your project, but for me it was a quick fix, if that's what you're looking for. Good luck!
The default terrain shader is optimized (or it should be) and has some special "features", changing it to custom and leaving it "blank" will make it use a plain diffuse shader I guess. It may remove the shine but will probably look bad and slow. $$anonymous$$ay work for small, simple terrains though :P
Just came across this and thanks Damiankarlfriston. $$anonymous$$uch better than the overly complex answers often given.
This worked for me without messing up my lighting work. Thanks!
Answer by sporkflips · Dec 15, 2016 at 03:43 AM
Another alternative is perhaps to select the texture and change the Alpha Source in the inspector to "None"
This is the correct solution I$$anonymous$$O - default import settings are "Alpha Source = Input Texture Alpha" even for JPGs. Setting this to "None" is what you should do for all JPGs (actually, Unity should), and also the Terrain Texture Editor window is aware of this setting and exposes a "Smoothness" slider as an equivalent for images without an alpha channel.
As far as i can tell, this is a "quite new" setting. The question and answers are from mid 2015
Working in Unity's HDRP and I had this issue. This solution completely solved the problem.
You are amazing! This should be the accepted solution what the heck?!
Answer by SGT_GQ · Feb 04, 2017 at 08:21 AM
Click on the material, go to Alpha Source and change to - From Grayscale
This resolved the issue for me. Thank you so much! I've been forum hunting trying to find a resolution..
This didn't work for my texture (png). It helped to put it on None.
Alpha Source "None" did not work for me but, "from Grayscale" did, thank you
Answer by olok · Mar 06, 2017 at 04:17 PM
Go to Terrain Setting change Texture to Built In Legacy Diffuse
Your answer
Follow this Question
Related Questions
unity 5 terrain shaders 3 Answers
Can't use material with shaders which need tangent geometry on terrain. 1 Answer
Noob Question - Custom trees and aliasing 1 Answer
Weird shader thing 1 Answer