Here it is working by shoving texture opposite way. It breaks when doing any rotations, as the texture moves relative to component axis which is now rotated relative to red/green axis. There are manual workarounds, not very convenient though.
The inbuilt sketchup eyedropper/bucket works perfectly because it ignores all that and just projects it on, just couldn't simulate it in ruby, so had to go the moving texture opposite direction to component.
[image: JosV_texturemapping.gif]