diff --git a/src/client/resources/resourcepacks/simply_no_entity_shading/shaders/include/light.glsl b/src/client/resources/resourcepacks/simply_no_entity_shading/shaders/include/light.glsl new file mode 100644 index 00000000..74885fa2 --- /dev/null +++ b/src/client/resources/resourcepacks/simply_no_entity_shading/shaders/include/light.glsl @@ -0,0 +1,12 @@ +#version 150 + +#define MINECRAFT_LIGHT_POWER (0.6) +#define MINECRAFT_AMBIENT_LIGHT (0.4) + +vec4 minecraft_mix_light(vec3 lightDir0, vec3 lightDir1, vec3 normal, vec4 color) { + return color; +} + +vec4 minecraft_sample_lightmap(sampler2D lightMap, ivec2 uv) { + return texture(lightMap, clamp(uv / 256.0, vec2(0.5 / 16.0), vec2(15.5 / 16.0))); +}