Search found 4 matches
- Thu May 21, 2020 10:49 pm
- Forum: General Discussion
- Topic: [ShaderToy] Copied a shader, but it doesn't work in Magic
- Replies: 5
- Views: 3321
Re: [ShaderToy] Copied a shader, but it doesn't work in Magi
I'm giving up on this shader, cuz it's too much trouble, when I rewrote it as a raymarcher instead of raytracer for much better results. Thank you for your help so far.
- Thu May 21, 2020 4:40 pm
- Forum: General Discussion
- Topic: [ShaderToy] Copied a shader, but it doesn't work in Magic
- Replies: 5
- Views: 3321
Re: [ShaderToy] Copied a shader, but it doesn't work in Magi
Figured out something. Apparently colors just work differently. Both videos are produced using the *exact* same shader code. In ShaderToy: https://streamable.com/tpxl0z In Magic: https://streamable.com/lyean8 The code (for reference): const float maxDist = 100.; // Maximum distance to trace a ray #d...
- Thu May 21, 2020 3:29 pm
- Forum: General Discussion
- Topic: [ShaderToy] Copied a shader, but it doesn't work in Magic
- Replies: 5
- Views: 3321
Re: [ShaderToy] Copied a shader, but it doesn't work in Magi
I did, there weren't any. The shader does compile, as I can render "lighting" based off of distance from camera. It just doesn't do the coloring from lightScene properly, while ShaderToy does.
- Thu May 21, 2020 1:34 pm
- Forum: General Discussion
- Topic: [ShaderToy] Copied a shader, but it doesn't work in Magic
- Replies: 5
- Views: 3321
[ShaderToy] Copied a shader, but it doesn't work in Magic
Hello! I'm having a problem as stated in the title. This is the shader: https://www.shadertoy.com/view/tsjfWW . When I copy it to a file and run it, there simply is a completely black output. The module still has the "speed" parameter working, so there aren't any compile errors afaik. The ...