markusfisch / ShaderEditor

Android app to create GLSL shaders and use them as live wallpaper
https://play.google.com/store/apps/details?id=de.markusfisch.android.shadereditor
MIT License
924 stars 137 forks source link

Variable for dark/night mode #164

Closed sibbl closed 1 year ago

sibbl commented 1 year ago

I'm wondering if it's possible to check if the dark and/or night mode is enabled.

I'd like to make the live wallpaper darker when the system is set to dark mode for example.

markusfisch commented 1 year ago

Yes, this is absolutely possible! Good idea! 👍

Will come with the next version which should be out soon.

markusfisch commented 1 year ago

Ah, sorry, I somehow totally forgot that I already implemented this 🙈😂

Please have a look at the uniforms (tap on the three dots in the upper right and choose "Add uniform/texture"). There you will find a nightMode uniform, which is 1 if the device is in night mode and 0 when it's not.