njbrown / texturelab

Free, Cross-Platform, GPU-Accelerated Procedural Texture Generator
Other
735 stars 45 forks source link

Implement crop node #42

Closed leoschwarz closed 3 years ago

leoschwarz commented 3 years ago

Hello. This commit would implement a basic crop node, which was requested in #41.

The second commit introduces additional features which I'm not sure if you want them:

Let me know if there's something I should change.

njbrown commented 3 years ago

Hey, sorry for the late reply to this. Give me another day to review please.

njbrown commented 3 years ago

Excellent node!

I made a few changes, however:

I should have documented how I implement libraries. Node libraries are fixed in order to prevent existing textures from breaking or older versions of TL breaking when new nodes are added. This means once a new library is out the public, it's immutable. This crop node will be added to the next library version (v3) and released in the next major upcoming TL release (0.4.0). Sadly, that release wont be out until a few months because I have quite a few minor releases to make along the way.

Sorry if you were excited about seeing this new node in the next build. The rules around node libraries is a small sacrifice to pay to prevent a world of headaches between releases.

Thanks for your contribution again @leoschwarz !