afauch / crayon-dev

Dev Repo for Crayon VR UI Toolkit
http://afaucher.me/crayon-page
1 stars 0 forks source link

'Glow-y' effect on some materials after color transition #6

Open afauch opened 6 years ago

afauch commented 6 years ago

Found by @rckmnt

Using method gameObject.SetColor("#FF0000", 0.8f);

ezgif-3-496f246802

Material Before Transition before

Material After Transition after

afauch commented 6 years ago

A couple of things I'm noticing @rckmnt

My attempt to repro (no glow-y issue) ezgif-3-03ecd4270a Before

screen shot 2018-04-11 at 9 29 48 pm

After

screen shot 2018-04-11 at 9 30 08 pm

Some shots in the dark:

Hypothesis 1 This has to do with your project-level lighting / quality settings (Edit > Project Settings > Quality). Maybe shading the "Fade" render mode isn't being respected by the quality settings under your current build target platform.

Hypothesis 2 This issue has to do with Forward/Deferred Rendering, and the differences are caused when a material is swapped from "Opaque" to "Fade" rendering mode without Forward Rendering turned on. I don't know much about this - just started reading about it here. What you're seeing seems similar to what happens when Color Buffer is active without including Depth Buffer and Normal Buffer. buffers

afauch commented 6 years ago

Haven't read this but may also be relevant: http://polycount.com/discussion/158129/unity-5-standard-shader-transparent-issue-see-2min-vid

afauch commented 6 years ago

Related, but not a solution: Unity docs on Transparent vs Fade render modes https://docs.unity3d.com/Manual/StandardShaderMaterialParameterRenderingMode.html

afauch commented 6 years ago

Logging my attempts to repro:

Hypothesis 1 disproved.