Elektrine lite

← Feed

@cosmicmarley17@deadinsi.de

Post #3122597

2023-12-16 17:16 UTC

@aeva@mastodon.gamedev.place I think this makes me understand shaders a little bit

Replies (1)

  • @aeva@mastodon.gamedev.place 2023-12-16 20:05

    @cosmicmarley17@deadinsi.de in both cases you're applying a thunk to a batch of data to produce some kind of transformation, usually which results in a second batch. The two most common kinds of shaders are the vertex shader, which is a function that takes a vertex and returns a vertex; and the pixel shader, which is a function that takes a pixel (interpolated data from 3 vertices) and returns a pixel (usually just a color).

    Open ##3122598