I spent about 45 minutes trying to get ChatGPT to do create an OSL shader for this but no luck. Im too stupid to get it working but maybe someone with more skills can. Interesting it even understood my prompt to start with.