Search Issue Tracker
Fixed in 2019.1.X
Fixed in 2018.3.X
Votes
0
Found in
2018.3.0a3
Issue ID
1056171
Regression
No
[PLM] No emissive GI contribution for objects using custom meta pass lighting shaders
Steps to repro:
1. Open the attached project and 'cube' scene;
2. Observe that cubes using custom emissive meta pass shaders contribute emissive lighting to the plane;
3. In the Lighting window change Lightmapper to 'Progressive';
4. Wait until the scene re-bakes.
Expected result:
Cubes using custom emissive meta pass shaders contribute emissive lighting to the plane.
Actual result:
Cubes using custom emissive meta pass shaders don't contribute emissive lighting to the plane after changing lightmapper to PLM. See attached video.
Notes:
- Reproducible in 2018.3.0a3, 2018.2.0b11, 2018.1.6f1;
- Reproducible on Windows 10;
- Reproducible only for PLM; not reproducible for Enlighten.
It is part bug, part authoring error, as the material is set up to do realtime GI emission:
Adding this in the PropertyBlockTest.cs script:
print("Material.globalIlluminationFlags: " + rendererTest.sharedMaterial.globalIlluminationFlags);
results in `Material.globalIlluminationFlags: RealtimeEmissive`
Adding this line, will make it bake correctly with the progressive lightmapper:
rendererTest.sharedMaterial.globalIlluminationFlags |= MaterialGlobalIlluminationFlags.BakedEmissive;
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android] GameObject are not rendered at all or rendered black when in the custom shader “multi_compile_instancing“ is enabled with two “float4” instance properties are present on older devices
- LineRenderer.BakeMesh generates a box-shaped MeshCollider when the camera's Y-axis rotation is in a specific range
- Different build sizes between Editor build and command-line build when "Static Batching" is enabled
- Particle System "Start Rotation" property affects a different axis when upgrading to newer Editor versions
- "Light" Component's "Culling Mask" setting is hidden but still has an effect when using HDRP
Add comment