Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run these in Kodelife #2

Closed
heaversm opened this issue Apr 7, 2018 · 2 comments
Closed

How to run these in Kodelife #2

heaversm opened this issue Apr 7, 2018 · 2 comments
Assignees
Labels

Comments

@heaversm
Copy link

heaversm commented Apr 7, 2018

Hi - these are great, but I was confused on how to open these in Kodelife. I couldn't find any of the examples that would actually run without Kodelife throwing errors.

@keijiro keijiro self-assigned this Apr 8, 2018
@keijiro
Copy link
Owner

keijiro commented Apr 8, 2018

  • Choose one of the fragment shaders from the Fragment directory.
  • Copy the source code.
  • Open "Fragment" pane in Kodelife.
  • Select all and paste the code.

@keijiro keijiro closed this as completed Apr 8, 2018
@geslotencirkel
Copy link

Maybe changed since 2018 so here is how I got it to work in KodeLife (0.9.1.132)

  • Open KodeLife and select New from File menu option
  • Leave Vertex tab alone and go to Fragment tab and copy paste a shader from this repo - in my example the boxes.glsl
  • Define resolution and time above the code you paste -
uniform float time;
uniform vec2 resolution;
  • in Boxes.glsl they are called iResolution and iGlobalTime, so change these to "resolution" and "time" . If you leave them as is, it doesn't work, even if you define them above the code and in Vertex tab - don't know whats the reason but i am also not a golfer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants