Patch a WebGL physical fragment shader whose transmission chunk is already EXPANDED
(by pinTransmittedAlphaGlsl, which runs first) so its refraction shift is
edge-apodized.
Pure over its input. A shader without the expanded chunk (no transmission, or a pin
that stood down) is returned untouched. If a three upgrade moves the parameters
include, the shader is left as it was and one warning names the consequence; the
unit test on three's real chunks turns either anchor's drift into a red build.
Parameters
fragmentShader: string
The fragment shader after the transmitted-alpha pin.
Patch a WebGL physical fragment shader whose transmission chunk is already EXPANDED (by
pinTransmittedAlphaGlsl, which runs first) so its refraction shift is edge-apodized.Pure over its input. A shader without the expanded chunk (no transmission, or a pin that stood down) is returned untouched. If a three upgrade moves the parameters include, the shader is left as it was and one warning names the consequence; the unit test on three's real chunks turns either anchor's drift into a red build.