So I am working on a raycasting project and first of all I need to know is how to render shader / image using GPU and moderngl on python.
import moderngl
def noise(size):
return [(random.randint(0, 255), random.randint(0, 255), random.randint(0, 255)) for _ in range(size)]
width, height = 100, 100
data = noise(width*height)
...
How to render the data on screen in a window using gpu and how to dynamicly change it (for example regenerating noise every second?