Shader questions
Posted: Wed Nov 01, 2017 10:42 pm
Hello folks!
I've been wanting to dabble with shaders for quite long now, and many questions arose whilst using this and this blog posts to get started. (Awesome sources by the way!)
This might be updated with a few more questions, but for now, I have 3 questions:
-> How can I get the color of a given pixel in a texture sent to the shader?
Suppose I send a drawn canvas to the shader. How can I get the color of a certain pixel on this canvas?
-> Is there any way to see values that are calculated inside the shader code? (This would be very useful for debugging purposes)
-> Besides the sources mentioned, are there any other useful beginner shader tutorials worth playing around with?
I found porting shaders from Shadertoy to be a pretty rough start for someone with no knowledge on this.
Sorry about the generic thread subject, couldn't think about anything else.
I've been wanting to dabble with shaders for quite long now, and many questions arose whilst using this and this blog posts to get started. (Awesome sources by the way!)
This might be updated with a few more questions, but for now, I have 3 questions:
-> How can I get the color of a given pixel in a texture sent to the shader?
Suppose I send a drawn canvas to the shader. How can I get the color of a certain pixel on this canvas?
-> Is there any way to see values that are calculated inside the shader code? (This would be very useful for debugging purposes)
-> Besides the sources mentioned, are there any other useful beginner shader tutorials worth playing around with?
I found porting shaders from Shadertoy to be a pretty rough start for someone with no knowledge on this.
Sorry about the generic thread subject, couldn't think about anything else.