How can Minecraft shader know about the objects when just pixels are the input

I know that Minecraft Shaders are written in GLSL. Someone explained to me that it would get a set of pixel as an input and would return a bunch of new pixels. But how does the shader know about details like the positon of entitys, models, so on?



Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation