ShockMicro / VanillaDynamicEmissives

Allows for dynamic emissive textures in vanilla Minecraft.
MIT License
74 stars 8 forks source link

Resourcepack does not work on Linux #22

Open 3Lord3 opened 2 months ago

3Lord3 commented 2 months ago

I installed Linux Mint 22 Cinnamon and this resource pack stopped working изображение

System:
  Kernel: 6.8.0-41-generic arch: x86_64 bits: 64 compiler: gcc v: 13.2.0 clocksource: tsc
  Desktop: Cinnamon v: 6.2.9 tk: GTK v: 3.24.41 wm: Muffin v: 6.2.0 with: plank vt: 7 dm: LightDM
    v: 1.30.0 Distro: Linux Mint 22 Wilma base: Ubuntu 24.04 noble

изображение I use a resource pack, in which I left only the shaders I need (It includes some VanillaDynamicEmissives files and LessFancyPants shader) shaders.zip Removing files one by one I found out that the problem is in the file rendertype_entity_translucent_cull.fsh What is this connected with? Does Linux have incompatible differences, or do I need to install something? I don't even know where to ask this

8Blits commented 1 week ago

In shaders/include/emmissive_utils.glsl, replace line 83 with: return float(inputAlpha);

I noticed this issue with SteamOS 3.0 as well, casting inputAlpha as a float seemed to fix this for me.