java.lang.Object
io.github.startsmercury.simply_no_shading.mixin.client.shading.entity.minecraft.GlslPreprocessorMixin
All Implemented Interfaces:
GetShaderPreprocessor

public class GlslPreprocessorMixin extends Object implements GetShaderPreprocessor
  • Field Details

    • simply_no_shading$configData

      private final ConfigData simply_no_shading$configData
  • Constructor Details

    • GlslPreprocessorMixin

      public GlslPreprocessorMixin()
  • Method Details

    • modifyLightingCalculations

      private String modifyLightingCalculations(com.mojang.blaze3d.preprocessor.GlslPreprocessor self, boolean quotesUsed, String file, com.llamalad7.mixinextras.injector.wrapoperation.Operation<String> operation, String source)
      Modifies the minecraft_mix_light function in Minecraft's shaders/include/light.glsl shader to enforce Simply No Shading features.
      Parameters:
      quotesUsed - true for double-quote include; false for angle-brackets
      file - the file path to include
      source - the shader source code
      Returns:
      the modified shader source code