Can't modify SegmentedDimmerMaterial _DimmingValue

I'm trying to modify the _DimmingValue of SegmentedDimmerMaterial.

While I can modify the value through the Unity editor with the slider on the shader, or through script (GetFloat("_DimmingValue") shows that the value is updated via SetFloat("_DimmingValue")), the dimmer opacity doesn't seemed to be changed. Setting the _DimmingValue to 0 can make the dimmer transparent, but anything over 0.1 just looks like 1 (fully opaque state) to me.

Is there anything that I missed?

Unity Editor version: 2022.2.21
ML2 OS version: 1.3.1
MLSDK version: 1.8.0
Host OS: Windows

Hi @xenia.sy.lin
could you confirm which segmented dimming technique you are using please? There are two ways that we do segmented dimming, and only the advanced usecase allows for variable dimming values, the simple usecase is a simple on/off. For further information https://developer-docs.magicleap.cloud/docs/guides/unity/display/unity-segmented-dimming
Thank you,
Sidney

Hi, thanks for the reply. I am using the advanced use case with configurable shader.

Hi @xenia.sy.lin
I have created an internal bug report, and I will report back any information I receive, or if I have further questions.
-Sidney

1 Like