Search Issue Tracker
Fixed in 5.0.4
Votes
2
Found in
4.5.5p3
Issue ID
648579
Regression
No
Directional light is not lighting a mesh correctly
Steps to repro:
1. Open the minimal report project and the scene 'repro_648579'
2. It is a stripped scene from the original project, containing only lights and meshes
3. Both meshes use the same shader, which outputs the exact colour of the main directional light in the scene
4. But yet the results aren't the same: one mesh isn't receiving any light and it switches to white and black randomly when changing selection. (see the screenshot)
Expected result: both objects should output the same color
Actual result: one object isn't receiving light correctly
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android] The Player freezes when disabling Bluetooth while connected to the headphones
- Addressable bundles are not retrieved from the cache when a WebGL Player is refreshed
- Sprites are incorrectly occluded by Sprite Physics Shape culling when behind in sorting order
- CPU usage is increased when the Editor is idle with the ProBuilder Package installed
- Unstable lighting when additional light sources are added in Shader Graph nodes
Cat Beltine
Feb 06, 2015 13:54
I have a similar issue and hope it is not my buggy hardware causing this:
the similar problem occurs with the current unity version 4.6.1f1 for Android (although not totally sure this is the same issue as I cannot see the screenshot/project). When using the Space Shooter Demo and mobile shaders there is a random flickering of black and white triangles on some objects. The strage thing is, that the selection of shaders/lightmaps on one object affects other gameobjects in the scene as well. Examples with Space Shooter demo on device:
Example 1: player ship with mobile/bumped diffuse or mobile/bumped specular and asteroides/enemies with mobile/bumped specular => player has the 'flickering desease'.
Example 2: player ship with mobile/bumped diffuse and single lightmap and asteroides/enemies with bumped specular => asteroides/enemies with 'flickering desease'.
Example 3: player ship and enemies with mobile/vertex lit and asteroides mobile/bumped specular => player with 'flickering desease'.
Example 4: same as example 3, but in addition with single lightmap on player => everything o.k. until the player dies. Then flickering of asteorides/enemies.
General: if there is flickering, it appears on all 'deseased objects' at the same time. The flickering comes and goes (randomly) repeated.
Additional info: the same flickering appears in angry birds, too. (But only very locally on one blue bird.)
On Nexus 7 the 'desease' rules, on Rapax tablet (low end device) no problems at all (???).
Hope this helps in finding a solution.