b22583d057
A new crate for the OptiFine/Iris translation (docs/shader-packs.md, order step 1, first half): open a pack folder or zip (shaders/ found as Iris finds it), list its programs per dimension folder, build the #include graph, discover options per include component (OptionAnnotatedSource rules: boolean defines referenced by #ifdef, value defines and configurable consts with a [...] list, conflicting defaults dropped), write the player's values into the lines, and expand Iris's standard macros with pp-rs, keeping line numbers so errors name file:line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 lines
298 B
GLSL
11 lines
298 B
GLSL
#version 120
|
|
#extension GL_ARB_shader_texture_lod : enable
|
|
#include "/lib/common.glsl"
|
|
uniform sampler2D colortex0;
|
|
varying vec2 texcoord;
|
|
void main() {
|
|
#if MC_VERSION >= 260300 && defined IS_IRIS
|
|
gl_FragData[0] = texture2D(colortex0, texcoord) * float(MC_RENDER_STAGE_TERRAIN_SOLID);
|
|
#endif
|
|
}
|