News for hackers. Stuff that matters.
Re:Interactive Intro to Shaders by prox on Friday October 27, 2023 @03:59AM (#38035855)
I might be wrong but there are compute shaders that can retake inputs and well, do more computing on them afaik.
Re:Interactive Intro to Shaders by superMayo on Friday October 27, 2023 @04:38AM (#38036055)
Indeed it's a simplification! You can use buffers to keep information from previous states or share state between pixels (for both fragment and compute shaders). Though it can greatly reduce the performance sometimes. For an intro however, I think it's simpler to assume no memory nor shared state.
Re:Interactive Intro to Shaders by prox on Sunday October 29, 2023 @11:09AM (#38059283)
Ah yes, its good to simplify in the beginning! Cool article in any case!
Re:Interactive Intro to Shaders by nwoli on Friday October 27, 2023 @04:16AM (#38035966)
You can set up shaders to access a shared global texture (and write to it). It’s more expensive and a bit to set up so it’s not totally true, but it’s a good first mental model