Third-party material in Vitrail
===============================

Vitrail is distributed under the GNU Lesser General Public License version 3, in LICENSE.
The files below contain material from another project, reused under that project's own terms.

Iris, https://github.com/IrisShaders/Iris
Copyright the Iris contributors
GNU Lesser General Public License version 3

  common/src/main/java/dev/vitrail/pack/program/ProgramFallbacks.java contains the gbuffers, shadow and
  Distant Horizons fallback table, adapted in 2026 from the enum
  net.irisshaders.iris.shaderpack.loading.ProgramId. The table was reorganised into a name to
  parent map. The blend mode overrides and the IrisProgram API mapping carried by the original
  enum were not reused.

  common/src/main/java/dev/vitrail/pack/target/TargetFormat.java transcribes the colour format table of
  net.irisshaders.iris.gl.texture.InternalTextureFormat, so that a pack is read against the names
  it was written for. The promotion of the three component formats and the replacement of the
  fixed function relics are this project's own, and are needed because Vulkan attaches neither.

  common/src/main/java/dev/vitrail/pack/target/ConstDirectives.java and
  common/src/main/java/dev/vitrail/pack/target/DrawBuffers.java follow the grammars of
  net.irisshaders.iris.shaderpack.parsing.ConstDirectiveParser and of
  net.irisshaders.iris.shaderpack.parsing.CommentDirectiveParser together with
  net.irisshaders.iris.shaderpack.properties.ProgramDirectives. Both rules are odd enough that
  reasoning them out would get them wrong, so they are reproduced rather than reinvented.

  common/src/main/java/dev/vitrail/pack/target/TargetDirectives.java and
  common/src/main/java/dev/vitrail/pack/target/TargetSchedule.java carry the semantics of
  net.irisshaders.iris.shaderpack.properties.PackRenderTargetDirectives, of
  net.irisshaders.iris.targets.ClearPassCreator and of net.irisshaders.iris.targets.BufferFlipper:
  the last declaration read overwriting the ones before it, the default clear colours, and which
  half of a doubled target each pass reads and writes. The two directives that are dead in Iris,
  GAUX4FORMAT and the promotion of colortex1 on a gdepth uniform, are not implemented. The flip
  state is carried once rather than as the pair BufferFlipper keeps.

  common/src/main/java/dev/vitrail/render/ColorTargets.java empties colortex0 to the frame's fog
  colour with an alpha of one, which is what net.irisshaders.iris.targets.ClearPass.execute does
  with the default colour IrisRenderingPipeline hands it. The alpha is reproduced along with the
  reason Iris gives for it, since a pack reads that channel as something of its own. Every other
  starting colour is TargetDirectives above.

  common/src/main/java/dev/vitrail/pack/source/ShaderProperties.java reads the sun, moon, stars and
  sky directives with the four words of
  net.irisshaders.iris.shaderpack.properties.ShaderProperties, lines 199 to 202, and with the
  default of PackDirectives beside it, lines 77 to 82, under which a directive the pack does not
  write leaves the piece drawn. Read on 5 August 2026. What is done with the answers is Iris's, word
  for word: net.irisshaders.iris.mixin.MixinSkyRenderer cancels renderSun and renderMoon and nothing
  else, shouldRenderStars is stored and has no reader at all, and shouldRenderSkyDisc gates the
  horizon cone Iris draws itself rather than the game's disc, in IrisRenderingPipeline.onBeginClear.
  This engine does the same four things, so a pack writing stars=false keeps the stars its own
  skybasic draws and sky=false loses the cone alone. Both engines evaluate the conditionals around
  these lines, Iris by running the whole file through PropertiesPreprocessor before it reads a key
  and this one by its own stack of conditions, and on this corpus the two agree. The clouds directive
  is read the same way and applied where Iris applies it, at the head of Options.getCloudStatus:
  net.irisshaders.iris.mixin.sky.MixinOptions_CloudsOverride, read on 10 August 2026, along with the
  priority of 1010 its own comment explains, Sodium replacing that accessor outright. The one thing
  not reproduced is the render distance gate that mixin carries, which guards a check 26.2 no longer
  makes.

  common/src/main/java/dev/vitrail/glsl/CloudVertex.java builds the cloud geometry in the pack's own
  vertex stage, which is the approach of
  net.irisshaders.iris.pipeline.transform.transformer.VanillaTransformer, lines 223 to 332, read on
  10 August 2026: vanilla binds no vertex buffer for its clouds, so neither engine hands the pack a
  mesh, and both rewrite gl_Vertex, gl_Normal and gl_Color into terms worked out from gl_VertexID
  and the CloudFaces texel buffer. The tables of corners, normals and face shades are Minecraft's
  own, from core/rendertype_clouds, and are read off it rather than off Iris, whose copy still
  carries the alpha of an earlier version. The names and the shape of the generated code are this
  engine's.

  common/src/main/java/dev/vitrail/render/HorizonCone.java takes the shape of the horizon geometry
  from net.irisshaders.iris.pathways.HorizonRenderer, read on 6 August 2026, whose own header, lines
  23 to 31, states what vanilla lacks: an inverted octagonal cone around the player, where the game
  has a clear colour and a plane overhead. Four things are reproduced. Its two bounds, TOP at plus
  sixteen and BOTTOM at minus sixteen, lines 37 and 43, which are the very heights SkyRenderer builds
  its two discs at, so they are the gap itself rather than a taste. Its fan, an apex under the camera
  and nine ring vertices above it, lines 79 to 86. The direction that ring is walked in, which is
  what leaves the walls facing inwards, towards a camera standing at the centre, a pipeline that
  culls back faces having no use for the other one. And the radius, sixteen blocks a chunk of render
  distance and never past two hundred and fifty six, lines 63 and 73 to 77, together with the reason
  Iris gives for that cap, that a larger cone breaks packs which rework the vanilla sky, and with the
  rebuild when the distance changes, lines 90 to 93.
  Where and how it is drawn is not reused. There the cone is a render pass of its own, opened before
  the game's sky and handed the fog colour as its modulator, IrisRenderingPipeline lines 1298 to
  1317; here it is drawn inside the pass the game opens for its own disc and straight after it, so
  that it is necessarily the same program, the same attachments and the same block. The sequential
  index buffer Iris draws it through, lines 95 to 106, is not reused either: the ten vertices are
  drawn unindexed, as SkyRenderer.renderSkyDisc draws its own ten.

  common/src/main/java/dev/vitrail/pack/target/TargetSize.java reimplements
  net.irisshaders.iris.gl.texture.TextureScaleOverride, down to the dot in the value being what
  tells a fraction of the screen from a count of pixels, together with the rule of
  net.irisshaders.iris.shaderpack.properties.PackDirectives.getTextureScaleOverride that looks the
  legacy name up before the canonical one. One divergence: the two axes share a single relative
  flag here where Iris carries one each.

  common/src/main/java/dev/vitrail/pack/target/TargetPlan.java folds a dimension's directives in the
  order of net.irisshaders.iris.shaderpack.programs.ProgramSet.locateDirectives, setup programs
  left out of it as they are there. The order the frame runs in, which the same file also carries,
  is not that one and is not from Iris.

  common/src/main/java/dev/vitrail/pack/target/PackDirectives.java gathers the settings a pack declares
  about itself with the names, the defaults and the precedence of
  net.irisshaders.iris.shaderpack.properties.PackDirectives and of its shadow counterpart,
  PackShadowDirectives, adapted in August 2026. That includes one behaviour that is a mistake
  there and is reproduced deliberately, with a comment saying so: both the wetnessHalflife and the
  drynessHalflife directives are registered against the rise of wetness, so no pack can change its
  fall, and packs are written against that. SHADOWHPL, which is a comment directive rather than a
  const one, is not implemented.

  common/src/main/java/dev/vitrail/pack/option/EngineDefines.java classifies the operating system, the
  vendor and the driver into the symbols a pack branches on with the prefix lists of
  net.irisshaders.iris.gl.shader.StandardMacros, and emits the biome, category and precipitation
  symbols the way net.irisshaders.iris.shaderpack.IrisDefines emits them, adapted in August 2026.
  The lists are arguments here rather than calls into a device, so that the table can be built
  without one.

  common/src/main/java/dev/vitrail/pack/program/TerrainPass.java carries the names, the alpha test
  defaults and the flip snapshot keying of net.irisshaders.iris.pipeline.programs.SodiumPrograms,
  its Pass enum and getAlphaTest, read on 3 August 2026. They are reproduced rather than chosen because
  packs are written against Iris and against nothing else. The shadow halves of the enum and
  everything the passes drive are this project's own.

  common/src/main/java/dev/vitrail/pack/program/AlphaTest.java emits the comparison in the negated
  form Iris emits, if (!(a > r)) discard, with Iris's translucent threshold of one ten
  thousandth, and looks an alphaTest override up under the name of the file that really serves
  the pass, which is Iris's lookup too.

  common/src/main/java/dev/vitrail/render/EntityDraw.java and
  common/src/main/java/dev/vitrail/render/EntityProgram.java send the game's entity and block entity
  geometry to the pack's programs on the table of net.irisshaders.iris.pipeline.IrisPipelines, read
  in August 2026, because a pack is written against that routing and against no other. What is
  reproduced is which pipeline reaches which program name; the pairing of each opaque name with the
  blending one its getTranslucent answers with, lines 212 to 222, which are the EntitiesTrans and
  BlockTrans of ProgramId reached through
  net.irisshaders.iris.pipeline.programs.ShaderKey lines 43 and 69, and which fall back on their own
  opaque name rather than on the terrain; the
  alpha test of one tenth the entity keys carry; and the priority under which a pipeline that could
  answer with the block or the entity program answers with a hand program instead while a hand pass
  is up, lines 191 to 218. Keying the replacement on the pipeline rather than on the render type is
  Iris's shape as well, a render type being made per texture where the pipelines are a fixed table.
  The render stage a pack is told it is drawing is Iris's answer and not a reading of the pass: NONE
  for a mob, since the call that would pose it in net.irisshaders.iris.layer.GbufferPrograms hangs
  off a shard Iris installs on no render type anywhere, where its block entity counterpart is
  installed at four sites, and BLOCK_ENTITIES for a block entity, which Iris really
  does pose and which is the phase its own entity pipelines branch on,
  net.irisshaders.iris.pipeline.programs.ShaderOverrides lines 42 to 44. The blend override of OFF
  that every shadow program of net.irisshaders.iris.shaderpack.loading.ProgramId carries, lines 13
  to 19, is reproduced with the reason given for it.
  The ORDER in which the two halves are drawn is not Iris's, and that divergence is written out in
  common/src/main/java/dev/vitrail/render/FeatureLayer.java rather than here.

  common/src/main/java/dev/vitrail/render/HandDraw.java takes the player's hand out of the game's
  late call and draws it inside the level the way net.irisshaders.iris.pathways.HandRenderer does,
  adapted in August 2026: the squeezing of the clip depth by its DEPTH constant, so that the arm
  cannot reach through the world it is drawn over, and the building of a second dispatcher, the
  game's own not being re-entrant from inside the level. Which of the two hand passes a row answers
  with is Iris's keying, IrisPipelines lines 191 to 218. The test that decides whether a hand is
  drawn at all is that of net.irisshaders.iris.mixin.MixinItemInHandRenderer, lines 32 to 39, and
  neoforge/src/main/java/dev/vitrail/neoforge/mixin/ItemInHandRendererMixin.java cancels the same
  head of the same per arm method on the same comparison, while
  neoforge/src/main/java/dev/vitrail/neoforge/mixin/GameRendererHandMixin.java redirects the call
  net.irisshaders.iris.mixin.MixinGameRenderer redirects, line 75, so that the hand is neutralised
  where it is submitted rather than where it is drawn. Its moment in the frame, ahead of the
  deferred stage, is Iris's constraint as well, net.irisshaders.iris.mixin.MixinLevelRenderer lines
  277 to 283 against net.irisshaders.iris.pipeline.IrisRenderingPipeline lines 1060 to 1073, and it
  is what neoforge/src/main/java/dev/vitrail/neoforge/VitrailNeoForge.java keeps.
  The depth constant is carried across rather than copied, and that is the one thing in this entry
  that is not a transcription: Iris runs against an OpenGL clip volume where this backend rasterises
  in inverted z, so its formula gives a different expression here. The conversion is written out in
  the file. What draw buffer nought is owned by while a hand pass is up is this project's own and is
  stated in common/src/main/java/dev/vitrail/render/GeometryProgram.java, Iris writing its hand
  colour to the pack's own target where here it reaches the pack through the scene seed.

  common/src/main/java/dev/vitrail/render/PackDepth.java keeps a third depth image, the world as it
  stood before the player's own hand was drawn, which is what a pack reads as depthtex2. Both the
  image and the moment it is taken at are net.irisshaders.iris.targets.RenderTargets's, read in
  August 2026: the texture it names Depth / Before Hand, line 73, refilled by its copyPreHandDepth,
  line 234, which net.irisshaders.iris.pipeline.IrisRenderingPipeline calls from beginHand, lines
  1050 to 1057, one line ahead of the solid hand and one step ahead of the beginTranslucents that
  takes depthtex1, net.irisshaders.iris.mixin.MixinLevelRenderer lines 279 to 282. That order is
  what common/src/main/java/dev/vitrail/render/PackChain.java keeps, and
  common/src/main/java/dev/vitrail/pack/target/SamplerPlan.java is where depthtex2 is told from
  depthtex1 for it.
  Three things in this entry are not transcriptions, and the files write each of them out. The
  image is allocated with the hand family and handed back with it, so a session that switches the
  family off pays nothing for it at all. It is filled only on the frames a hand is really
  drawn rather than on every frame; a frame that draws none leaves the two
  moments holding the same depth, and depthtex2 is answered from the opaque copy instead. Iris
  rebuilds its own on a resize or a depth format change, net.irisshaders.iris.targets.RenderTargets
  lines 172 to 178, and otherwise carries it whether a hand was drawn or not. Second, Iris serves
  depthtex2 to every program off one table, terrain, gbuffers and shadow alike,
  net.irisshaders.iris.samplers.IrisSamplers lines 220 to 226 reached from IrisRenderingPipeline
  lines 380 and 763, so a program drawn before the copy reads the previous frame's; here a pass
  drawn before the copy is taken finds no image at all and reads the far plane. Third, the window
  each image is stored in is this backend's inverted z turned round once, where Iris copies a depth
  it can hand over as it stands.

  common/src/main/java/dev/vitrail/render/ParticleDraw.java draws the game's particles with the
  pack's programs, and three of its answers are Iris's, read in August 2026. The alpha test of one
  tenth both particle keys of ShaderKey carry, lines 58 and 59, the game's own particle pipeline
  declaring no cutout define there is anything to inherit from. The render stage posed over the
  whole of the particle renderer rather than per half,
  net.irisshaders.iris.mixin.MixinParticleEngine lines 24 to 30. And leaving the game's own shader
  on a layer the table has no key for, which is what an unassigned pipeline gets there,
  IrisPipelines lines 224 to 231 through net.irisshaders.iris.mixin.MixinShaderManager_Overrides
  lines 97 to 101; the difference is that the refusal is said in the log here.

  common/src/main/java/dev/vitrail/render/WeatherDraw.java carries the alpha test of one tenth of
  the single weather key of ShaderKey, line 60, and the shape under which both of the game's weather
  pipelines reach that one key, IrisPipelines lines 70 and 71.
  neoforge/src/main/java/dev/vitrail/neoforge/mixin/ClientLevelMixin.java hands the rain particle
  count the frugal setting rather than skipping the walk, which is what
  net.irisshaders.iris.mixin.MixinWeatherRenderer does with the same word, lines 30 to 37. The
  method Iris hangs that on is gone in 26.2, the spawning having moved out of the weather renderer
  and into the level's own tick, so the setting is substituted into the local that still reads it.

  neoforge/src/main/java/dev/vitrail/neoforge/mixin/BlockEntityRenderDispatcherMixin.java marks the
  block entities around the dispatcher and not around each renderer, which is where
  net.irisshaders.iris.mixin.entity_render_context.MixinBlockEntityRenderDispatcher puts it, lines
  52 and 71: one method covers every block entity in the game and no renderer of them has to know.
  What the mark is used for, and the single boolean that carries it where Iris treats the nested
  case as impossible by contract and throws, are this project's own and are stated in
  common/src/main/java/dev/vitrail/render/BlockEntityGeometry.java.

  common/src/main/java/dev/vitrail/pack/source/DimensionSet.java ports the folder conventions of
  net.irisshaders.iris.shaderpack.ShaderPack, lines 132 to 148, defaults included: the overworld
  folder answering for every world the pack never names, the other two answering for themselves
  alone.

  common/src/main/java/dev/vitrail/render/PackPlace.java ports the dimension resolution of
  net.irisshaders.iris.Iris, lines 606 to 641: a world the pack does not name itself is answered
  for by its sky rather than by its identifier, and a pack that does name it is taken at its word.

  common/src/main/java/dev/vitrail/pack/id/BlockIds.java and
  common/src/main/java/dev/vitrail/render/BlockStateIds.java follow the material map rules of
  net.irisshaders.iris.shaderpack.materialmap: the grammar of BlockEntry.parse, the line splitting
  substitution for folded continuations, and the putIfAbsent resolution walking the file from the
  top, under which the first declaration to match a block state wins. The order is the semantics,
  so it is reproduced rather than reinvented.

  common/src/main/java/dev/vitrail/glsl/SodiumVertex.java packs and unpacks the block id the way
  Iris does, ((id + 1) << 1) | isFluid and its inverse term for term, so that nought means no
  declaration matched and comes back out as the -1 every pack tests against. The reading of
  Sodium's vertex layout in the same file is this project's own and is not from Iris.

  common/src/main/java/dev/vitrail/glsl/LegacyGlsl.java reproduces what Iris puts in place of the
  fixed function vertex inputs of a full screen pass, in CompositeTransformer lines 47 to 71: the
  two attributes behind gl_Vertex and gl_MultiTexCoord0, a quad whose coordinates run from (0,0) to
  (1,1), solid white for gl_Color, the (0,0,1) the current normal starts at without one, and
  vec4(0.0, 0.0, 0.0, 1.0) for the texture units above nought, that last one through
  CommonTransformer.replaceGlMultiTexCoordBounded. They are reproduced because a pack's full screen
  pass is written expecting exactly those values. The same file, together with
  common/src/main/java/dev/vitrail/uniform/UniformCatalog.java, carries the rule that
  modelViewMatrix and projectionMatrix mean gl_ModelViewMatrix and gl_ProjectionMatrix. Iris states
  that equivalence nowhere; it is read off its transformers, which TransformPatcher picks by the
  version and the profile a unit declares. The bare names are answered by CompositeCoreTransformer,
  SodiumCoreTransformer and VanillaCoreTransformer; the gl_ names by CompositeTransformer,
  SodiumTransformer, VanillaTransformer, DHTerrainTransformer, DHGenericTransformer, and
  VanillaCoreTransformer again, which is the one place the two spellings sit side by side. On the
  composite and the Sodium sides the pair lands on the same value whichever of the two transformers
  answers. The vanilla side is the exception: its non core path answers gl_ModelViewMatrix with a
  built expression and does not answer the bare name at all. The two Distant Horizons transformers
  rename the pair exactly as the composite side does, and are named here so that the list is the
  whole of what answers rather than the part this engine happened to need. All are in
  net.irisshaders.iris.pipeline.transform.transformer.

  common/src/main/java/dev/vitrail/uniform/Smoothed.java adapts the exponential smoothing of
  net.irisshaders.iris.uniforms.transforms.SmoothedFloat in August 2026, including its half life in
  deciseconds, its separate rise and fall constants and its lack of smoothing on the first value.
  The value, the half lives and the frame duration are passed in rather than pulled from a supplier
  and a global frame clock.

  common/src/main/java/dev/vitrail/uniform/NoiseTexture.java adapts the noise image of
  net.irisshaders.iris.targets.backed.NativeImageBackedNoiseTexture in August 2026, seed and loop
  order included, since a pack indexes that image with coordinates of its own. The pixels are laid
  out into a byte array here rather than through the game's image class.

  common/src/main/java/dev/vitrail/uniform/BiomeCategory.java is the enum
  net.irisshaders.iris.parsing.BiomeCategories, copied in August 2026 in its own order because the
  ordinal is the value a pack compares against.

  common/src/main/java/dev/vitrail/uniform/expr/kroppeb/stareval/ is stareval, by Kroppeb,
  fifty-eight files taken from Iris at commit b0ae41c in August 2026 and relocated under this
  package so that nothing collides if Iris is installed alongside. The author's own package name
  is kept inside the path. Five edits: Type.convert answers a UniformShape instead of Iris's GL
  uniform type enum and gained the reverse direction; FunctionResolver.logAllFunctions, which
  printed the table to standard output, became names(), which a test can compare against;
  fastutil's collections became the JDK's; and the two unreachable log overloads of
  ExpressionResolver are not carried, the one taking a Supplier, which nothing calls, and the one
  taking a plain String, which that first one is the only caller of. And StringReader is final
  where Iris leaves it open, which this build's -Werror requires of a class that publishes this
  from its constructor; nothing subclasses it on either side.

  common/src/main/java/dev/vitrail/uniform/expr/ExprFunctions.java,
  common/src/main/java/dev/vitrail/uniform/expr/ExprGrammar.java,
  common/src/main/java/dev/vitrail/uniform/expr/VectorType.java,
  common/src/main/java/dev/vitrail/uniform/expr/MatrixType.java,
  common/src/main/java/dev/vitrail/uniform/expr/VectorConstructor.java,
  common/src/main/java/dev/vitrail/uniform/expr/VectorizedFunction.java and
  common/src/main/java/dev/vitrail/uniform/expr/BooleanVectorizedFunction.java come from
  net.irisshaders.iris.parsing, same commit and same date, renamed where the old name said Iris.
  The OptiFine documentation in the header of IrisFunctions is kept word for word: it is the only
  statement of the contract these packs were written against. Three changes of substance. The six
  overloads of smooth are built by one method rather than written out, and they take the frame
  duration from the evaluation context instead of a global timer, so that the smoothing itself is
  the one in dev.vitrail.uniform.Smoothed rather than a second copy of it. And an implicit cast
  from int to bool is registered, which Iris does not need: it types a boolean uniform as a
  boolean, where our catalogue has no boolean shape and hands one over as an integer. And the four
  constants of VectorType that Iris declares and never reads, the three boolean vectors and the
  table of every array vector type, are not carried, nothing here reading them either.

  common/src/main/java/dev/vitrail/uniform/expr/CustomUniforms.java follows the dependency graph of
  net.irisshaders.iris.uniforms.custom.CustomUniforms, adapted in August 2026: the topological
  sort, the propagation of a broken uniform to everything that reads it, the refusal of a name that
  shadows a built in one, and the six types a declaration may take. Two divergences, both stated in
  the file: a cycle drops the uniforms it runs through and names them where Iris throws, and what
  survives is pruned by walking back from the exposed uniforms rather than by counting references.
  net.irisshaders.iris.uniforms.HardcodedCustomUniforms, which registers twenty-seven of these
  names itself, copied from BSL and Complementary as its own header says, is not reused: nothing
  calls it.

  common/src/main/java/dev/vitrail/render/FrameState.java reads the frame the way several of the
  net.irisshaders.iris.uniforms classes read it, adapted in August 2026: the millisecond
  quantisation and the two wrapping points of SystemTimeUniforms, the walk and teleport ranges of
  CameraUniforms.CameraPositionTracker together with the fact that only two axes are ever shifted,
  the Nether and End exception of WorldTimeUniforms, and the sentinels, the ratios and the fixed
  maxima of IrisExclusiveUniforms. Each of them is marked in the file at the point it is used, with
  the ones that are mistakes there named as such. What is not reused is the surrounding machinery:
  the values are read into fields at one named point in the frame rather than pulled through
  suppliers at a registration frequency, and nothing here holds a uniform.

  common/src/main/java/dev/vitrail/render/ViewMatrices.java builds the four shadow matrices with
  the construction of net.irisshaders.iris.shadows.ShadowMatrices and of
  net.irisshaders.iris.shadows.ShadowRenderer, adapted in August 2026: the choice of casting body,
  the rotation order, and the grid snapping down to its negative remainder, which is a rounding
  mistake there that packs are written against. The rotations are written out in JOML rather than
  stacked on a PoseStack, since no game type may cross into the value package, and the orthographic
  matrix is always built in the legacy volume because this one is published and never drawn with.

  common/src/main/java/dev/vitrail/render/ShadowGeometry.java walks the world for the light so that
  what moves casts a shadow, on the construction of net.irisshaders.iris.shadows.ShadowRenderer,
  adapted in August 2026. Four things are taken. The light's own camera, built the way Iris builds
  it rather than borrowed from the frame. The place the list of casters is cut, and the test it is
  cut by, which is after the extraction rather than before it. One caster extracted the way the game
  and Iris both extract it. And the player read as Iris reads it, which is not as a flag: where a
  pack's directives refuse the families that move, the player directive is the whole of what is
  left, and Iris keeps that case as a branch of its own, lines 550 to 560, which extracts the player
  and whatever it is riding one by one instead of walking the visible entities. The split is kept
  rather than tidied into a uniform rule, the vehicle being carried by that branch alone.
  What is not reused is what the walk refuses. Iris binds the shadow framebuffer for the whole of
  its stage, so a pipeline its shadow table has no key for keeps the game's shader and still writes
  the map; here what is not served is not drawn at all. That is a divergence, and the file carries
  it with what it costs the image.
  neoforge/src/main/java/dev/vitrail/neoforge/sodium/ShadowTerrain.java draws everything that moves
  between the opaque world and the copy, which is where Iris puts it, ShadowRenderer line 584 then
  line 588, so that a caster that moves is in shadowtex1 as well as in shadowtex0.

  common/src/main/java/dev/vitrail/pack/source/ShadowCasters.java reads which families a pack lets
  into its shadow map. The set a pack asks for by saying nothing is Iris's own, and the pair of
  directives is tested in the shape Iris tests it in, before anything is extracted.

  common/src/main/java/dev/vitrail/uniform/values/CelestialValues.java carries the celestial
  positions of net.irisshaders.iris.uniforms.CelestialUniforms, adapted in August 2026: the single
  step of wrapping, the starting vector of length one hundred, the unread y of the moon, and the w
  of zero on the up vector. Same rewriting of the rotations, and the two calls into Iris's own
  pipeline object are replaced by questions to the world state.

  common/src/main/java/dev/vitrail/uniform/values/DrawValues.java takes the quad projection of
  net.irisshaders.iris.pipeline.transform.transformer.CompositeTransformer as a literal, since it
  is what the packs are written for. Its inverse is written out rather than computed, because the
  matrix is singular and inverting it yields infinities; that constant is this project's own.

  common/src/main/java/dev/vitrail/render/BiomeClassifier.java reproduces the cascade of
  net.irisshaders.iris.uniforms.BiomeUniforms in August 2026, in its order, because the order is
  what decides a biome carrying two tags. The two gaps are reproduced with it and named in the
  file: no category is ever answered UNDERGROUND, and a savanna comes out as plains.

  common/src/main/java/dev/vitrail/uniform/ViewSource.java splits the projection a pack reads the
  way Iris splits it: gl_ProjectionMatrix becomes the projection really bound at the draw, and
  therefore the hand's while the hand is being drawn, where gbufferProjection stays the level's.
  net.irisshaders.iris.pipeline.transform.transformer.VanillaTransformer, line 368.

  common/src/main/java/dev/vitrail/uniform/values/GeometryValues.java substitutes the lightmap
  texture matrix where net.irisshaders.iris.uniforms.builtin.BuiltinReplacementUniforms substitutes
  it, line 12, on the terrain and on every family the game hands over as a render type. The sixteen
  numbers are worked out here from the texel centres rather than read off Iris, and they agree with
  the sixteen it carries; what is taken is the rule that gl_TextureMatrix[1] is answered with them
  at all, which is what a pack expects. One family is answered the identity here instead, and the
  file names that as a divergence.

  common/src/main/java/dev/vitrail/glsl/GlslTranslator.java sends a read of gl_TextureMatrix[0] to
  the game's own per draw transforms on the entity family, which is where
  net.irisshaders.iris.pipeline.transform.transformer.VanillaTransformer sends it, line 163, and
  VanillaCoreTransformer, line 86. What is taken is the rule that unit nought means the matrix that
  draw was prepared with rather than a value of the engine's, which is what makes an animated texture
  animate at all. Iris substitutes it on every program it patches as vanilla and this engine on the
  entity family alone; LegacyGlsl.GAME_TEXTURE_MATRIX names the two shapes that leaves out, the
  families whose number is the same either way and the one family whose number is not. The four
  members the block is declared with in
  common/src/main/java/dev/vitrail/glsl/LegacyGlsl.java are the game's own layout, read off
  net.minecraft.client.renderer.DynamicUniforms and not off Iris, and the two agree because both
  describe the same buffer.

  The same file sends a read of gl_ModelViewMatrix to that same block, on the passes drawn from the
  camera, which is what
  net.irisshaders.iris.pipeline.transform.transformer.VanillaTransformer does at lines 354 to 366
  for every program it patches as vanilla. What is taken is the rule that the model view of a
  prepared draw is that draw's own, nudge included, rather than a matrix the engine holds for the
  whole run: it is what lets a piece and whatever is drawn at its exact depth agree, and an
  enchantment's glint is tested for equality against the armour under it. Two things are ours rather
  than Iris's and both are named in LegacyGlsl. The walk bob is multiplied back on the front, this
  engine keeping it out of the game's matrices where Iris folds it in. And the shadow programs are
  left out: Iris bakes the light into its casters' vertices, posing them on a matrix stack of its
  own and setting the game's to the identity for that stretch, so what its shadow programs read out
  of this block is the identity; this engine leaves its casters in player space and answers the
  light as the matrix they read instead.

  common/src/main/java/dev/vitrail/uniform/UniformGaps.java registers the uniforms this engine
  cannot answer, and one of its entries is Iris's answer rather than an absence: entityColor under a
  full screen pass is the constant net.irisshaders.iris.uniforms.CommonUniforms gives it, line 163.
  The rest of the file records what Iris reads off a vertex element the game's entity format has not
  got, which is why those names are constant here; that is a statement about Iris and not material
  taken from it.

  common/src/main/resources/assets/vitrail/lang/ follows the Iris translations for the words this
  screen and Iris's own screens have in common, in the fourteen languages both projects carry, so
  that a player who has used Iris reads the term he already knows. Of the two hundred and sixty six
  values in those files, forty one are word for word a string of Iris's language files that the game
  itself does not use, and twenty five more are a string Iris and the game both use. They are the
  title, the apply, reload and reset buttons, the pack list and its own title, and the profile pair.
  The rest is the game's vocabulary or this project's.

  neoforge/src/main/java/dev/vitrail/neoforge/sodium/TerrainMesh.java squares the terrain's tangent
  against its normal the way net.irisshaders.iris.vertices.NormalHelper.packDiamondByte does, read in
  August 2026: the normal's own component is subtracted from the tangent, and where that leaves
  nothing the substitute is the first axis of the orthonormal basis its onbFromUnitNormal builds,
  written out term for term along with the epsilon of ten to the minus twenty compared on the
  squared length rather than on the length. The basis construction is Frisvad's, which Iris cites at
  that method; what is reused here is Iris's use of it, so that a pack reads the same frame under
  both. What is NOT reused is the storage: Iris spends one byte on an angle in the plane that basis
  leaves, and unpacks it in a patched vertex stage, where this engine writes the vector itself in
  three bytes and has no patched text to unpack an angle in.

  common/src/main/java/dev/vitrail/render/PbrMap.java,
  common/src/main/java/dev/vitrail/render/PbrAtlas.java and
  common/src/main/java/dev/vitrail/render/PbrAtlases.java build the normal and specular maps a
  resource pack ships, and the following answers are Iris's, read in August 2026. The layout, one
  companion image per atlas with each map at the base sprite's own x and y, is that of
  net.irisshaders.iris.pbr.loader.AtlasPBRLoader, lines 55 to 74, with the suffixes and the two
  values a sprite with no map of its own reads taken from net.irisshaders.iris.pbr.texture.PBRType,
  lines 7 and 8. The plain per channel average the mipmap is taken by is
  net.irisshaders.iris.pbr.mipmap.LinearBlendFunction through its ChannelMipmapGenerator, and the
  three thresholds the specular map is averaged inside instead, along with the rule that ties go to
  the first of the four, are net.irisshaders.iris.pbr.format.LabPBRTextureFormat lines 13 to 18 and
  net.irisshaders.iris.pbr.mipmap.DiscreteBlendFunction lines 17 to 26. Resolving the maps from the
  albedo texture the draw has bound, rather than from the family of the pass, is
  net.irisshaders.iris.pipeline.IrisRenderingPipeline.onSetAlbedoTex, lines 849 to 871, which is
  also where the same file chooses between the atlas's own filtering and a nearest one on the same
  question, lines 860 to 867.
  Six things in this entry are not transcriptions, and the files write each of them out. The maps
  are not animated here, where Iris gives its companion sprites animation states and ticks them with
  the atlas, net.irisshaders.iris.pbr.texture.PBRAtlasTexture lines 289 to 309. Nothing but a
  stitched atlas gets maps here, where Iris has a second loader for a plain texture,
  net.irisshaders.iris.pbr.loader.SimplePBRLoader lines 19 to 31, so entity skins and armour layers
  read theirs there and read the flat value here. Iris loads a texture's maps lazily, on the frame
  after the texture is first bound as albedo, where these are built when the atlas is stitched, and
  it builds none at all until a shader pack asks for the names. The border of replicated texels the
  stitcher gives every sprite is written out term for term here, where Iris inherits it by reusing
  the game's own blit path.
  The last two are places where following Iris exactly is not possible or not right, and both are
  argued in the files. The specular map is read with a filter that is nearest inside a mip level and
  interpolates between levels, where Iris asks for nearest in both: the backend takes the mode
  between levels from the sampler's maximum lod alone and the game's cache offers no way to ask for
  the other one. And the three labPBR thresholds are applied to the channels the format defines them
  on, where Iris's own runtime exchanges its red and blue functions by unpacking an ARGB pixel
  through Sodium's ColorABGR, net.irisshaders.iris.pbr.mipmap.ChannelMipmapGenerator lines 19 to 50
  against net.irisshaders.iris.pbr.mipmap.AbstractMipmapGenerator lines 22 to 27; the exchange
  cancels for the image and not for the functions, so its smoothness is thresholded as if it were
  porosity.

  Nothing else in Vitrail is derived from Iris. Of its GLSL transformation machinery, which links
  against glsl-transformer (AGPL-3.0), only the values named above are reproduced: none of that
  code is here, and the translator in dev.vitrail.glsl is this project's own.
