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
Copy file name to clipboardExpand all lines: README.md
+1-11Lines changed: 1 addition & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,17 +83,7 @@ end
83
83
84
84
## Notes about porting filters from Shadertoy
85
85
86
-
Shadertoy and Processing both have their own quirks when it comes to shader programming. We need to make some changes in order to make Shadertoy code work with Processing/ruby-processing.
87
-
88
-
Replace:
89
-
`void mainImage( out vec4 fragColor, in vec2 fragCoord )` -> `void main( void )`
90
-
91
-
Replace all:
92
-
*`iChannel0` -> `texture`
93
-
*`fragCoord` -> `gl_FragCoord`
94
-
*`fragColor` -> `gl_FragColor`
95
-
96
-
There is more to it than this but these tips should cover most basic filters.
86
+
Shadertoy and Processing both have their own quirks when it comes to shader programming. We need to make some changes in order to make Shadertoy code work with Processing/ruby-processing. See [wiki](https://github.com/ruby-processing/filters4ruby-processing/wiki/Translating-shaders-for-processing) which you are welcome to edit if you know better
97
87
98
88
Now go dig for some [shaders](https://www.shadertoy.com/results?query=filter) and help us extend the library of filters available for Processing/ruby-processing!
0 commit comments