Shaders have evolved to perform a variety of specialized functions in computer graphics special effects and video post-processing, as well as general-purpose computing on graphics processing units.[1]
Let’s focus on the first sentence for a minute.
We learn that shaders are computer usa email address data programs that are used for calculating the lighting of 3D scenes. You can see why that would be helpful for video games. And that’s actually the origin of shaders.
having barely enough computing power to run the early examples of real-time 3D, developers needed some tools to perform their calculations as efficiently as possible. That’s when a new category of graphics processing focused programs appeared. Since the output of such a program at that time was usually a shaded scene, the name stuck – a shader.
Unshaded geometry vs Output of a shader – Flutter Shader Guide
Left: Unshaded geometry; Right: Output of a shader
That’s cool and all, but that doesn’t seem useful for our Flutter projects, right?
We’re pretty much never doing any actual 3D, so why bother with shaders?
Reading the Wikipedia definition further, we learn that while shaders were originally built for 3D graphics, they were later repurposed to other applications. Among these, we find special effects – exactly what we need for our Flutter UIs!
Way back in the era of computers
-
- Posts: 15
- Joined: Sun Dec 22, 2024 5:08 am