Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
osltoy is a GUI app that lets you interactively edit a pattern shader
and adjust its parameters, seeing the updated rendered results in
real time.
It's the OSL equivalent https://www.shadertoy.com/
The GUI uses Qt5. If that's not on your system (or if you purposely
disable it with the build-time option USE_QT=0), osltoy will not be
built (but the rest of OSL will).
A few other changes that come along with the ride:
The
shade_image
utility function has changed its API slightly: thelast (optional) parameter that used to be a simple thread count is now
a
parallel_image_options
struct. But this struct can be implicitlyconstructed from an int (which is, in fact, the thread count), so any
source code that calls shade_image should not need to be altered.
New mandelbrot.osl shader has been added. It computes Julia sets, too.
Enjoy!