You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.
Hey, So basically i was having a hard time porting a shadertoy frag shader.
Basically i did what it said on the Shader Fragment Documentation and OS Engine's example frag on porting shaders. changing void mainImage( out vec4 fragColor, in vec2 fragCoord ) to void main(), adding #pragma header, adding vec2 fragCoord = openfl_TextureCoordv * iResolution, Changing iChannel0 to bitmap, and Vice Versa, However everytime i load the shader (The HX script is fine) it doesn't load the frag shader. I mostly get an invisible shader or a C1503 error explaining an undefined variable. It honestly made me so annoyed that i ended up burning out. Does anyone know how to properly port a shader from shadertoy onto yoshi engine? Cause i clearly don't know what i'm even doing anymore-
Hey, So basically i was having a hard time porting a shadertoy frag shader.
Basically i did what it said on the Shader Fragment Documentation and OS Engine's example frag on porting shaders. changing
void mainImage( out vec4 fragColor, in vec2 fragCoord )
tovoid main()
, adding#pragma header
, addingvec2 fragCoord = openfl_TextureCoordv * iResolution
, ChangingiChannel0
tobitmap
, and Vice Versa, However everytime i load the shader (The HX script is fine) it doesn't load the frag shader. I mostly get an invisible shader or a C1503 error explaining an undefined variable. It honestly made me so annoyed that i ended up burning out. Does anyone know how to properly port a shader from shadertoy onto yoshi engine? Cause i clearly don't know what i'm even doing anymore-This is the shader i attempted to port: https://www.shadertoy.com/view/Ms23DR
And this is the code in the frag file:
The text was updated successfully, but these errors were encountered: