Open rainyt opened 3 years ago
My Github:https://github.com/rainyt/openfl-glsl
Woah! This is very very cool @rainyt!
I've added a link this to the readme, in the future I plan to make a general VectorMath -> GLSL | HLSL | SPIR-V translator – perhaps we can collaborate on that one day!
Okay, thank you, very much looking forward to it!
Now you can write GLSL directly in Haxe, you can refer to the example: https://github.com/rainyt/openfl-glsl-samples/blob/main/Source/glsl/Haxe2GLSL.hx
When using HaxeToGLSL, you can access the static variables of the class fragmentSource
and vertexSource
.
Use:
Haxe2GLSL.fragmentSource;
Haxe2GLSL.vertexSource;
This will have nothing to do with OpenFL.
I can't wait to play with this! Great stuff @rainyt
I currently use this library to implement an implementation of GLSL in Haxe for OpenFL: Haxe Source:
GLSL:
The library is very convenient for me to realize the basic content, I only did the translation.
So I plan to use this library to implement the GLSL basic API currently required. Hope to have more implementation support~