Class GlslPreprocessorMixin
java.lang.Object
io.github.startsmercury.simply_no_shading.mixin.client.shading.entity.minecraft.GlslPreprocessorMixin
- All Implemented Interfaces:
GetShaderPreprocessor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringmodifyLightingCalculations(com.mojang.blaze3d.preprocessor.GlslPreprocessor self, boolean quotesUsed, String file, com.llamalad7.mixinextras.injector.wrapoperation.Operation<String> operation, String source) Modifies theminecraft_mix_lightfunction in Minecraft'sshaders/include/light.glslshader to enforce Simply No Shading features.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.startsmercury.simply_no_shading.impl.client.extension.GetShaderPreprocessor
simply_no_shading$getShaderPreprocessor
-
Field Details
-
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 theminecraft_mix_lightfunction in Minecraft'sshaders/include/light.glslshader to enforce Simply No Shading features.- Parameters:
quotesUsed- true for double-quote include; false for angle-bracketsfile- the file path to includesource- the shader source code- Returns:
- the modified shader source code
-