Skip to content

Commit 13c73fe

Browse files
committed
Update README.md
1 parent 75b605a commit 13c73fe

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,7 @@ end
8383

8484
## Notes about porting filters from Shadertoy
8585

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
9787

9888
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!
9989

0 commit comments

Comments
 (0)