-
-
Notifications
You must be signed in to change notification settings - Fork 473
Description
Editing glsl in a haxe string can be cumbersome, usually I'm editing in one place, testing it on shadertoy or GLSL Lint, copying it over and editing it for compatibility, or I'm typing it raw into a .hx file, either way I'm always making mistakes.
A macro that embeds glsl from, say, a .frag would definitely reduce some of my human error. could create new tags, like @:glFragmentSourceFile("path/to.frag)
. I haven't written a shader in a blue moon, so the details are hazy, but I plan to look into this and develop this feature in the near future. This issue is mainly a "note to self", but any input is greatly appreciated. My end goal is to have glsl code that works in some vscode previewer extension, that openfl can grab and use without the dev needing to modify it