mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-15 11:51:33 +00:00
Two changes to how many colours a texture can reach, and whether they are the right ones. A mix alternates its two filaments over a cycle of at most six layers, which also caps how many distinct mixes exist: eleven ratios per pair of filaments. Raised to ten, which gives 33 and so lets a gradient be stepped more finely. Measured on four filaments: a green-to-red gradient goes from 11 usable mixes to 16, and the shipped Colour Bricks from 6 to 10. Separately, the bilinear neighbour was wrapped for every tiling method. Repeat does start again at the opposite edge, but a mirrored tile folds back on itself, so there the texel past the edge is the edge again. Wrapping blended the image's two opposite edges at every mirrored seam: on a black-to-white ramp the bright edge sampled as 0.008 instead of 0.988. It also disagreed with the preview, which binds GL_MIRRORED_REPEAT and folds - so a bake could not match what the viewport showed.
OrcaSlicer tests
Building, running and writing tests is documented on the wiki, under How to Test.
Two files here rather than there, because coding agents only read what is in the repository: