easy5 pts · first answer countsrenderingshaders
Uniform or vertex attribute
In a shader, the light direction is the same for every vertex of a draw call, but each vertex has its own normal. How are these two usually passed in?
Discussion 0
Join free to post in the discussion.
Related questions
- Why use a sprite atlasGame Developer
- Why textures have mipmapsGame Developer
- Main job of a vertex shaderGame Developer
- How often a fragment shader runsGame Developer
- What the depth buffer storesGame Developer
- Perspective or orthographic cameraGame Developer
- What back-face culling skipsGame Developer
- What UV coordinates areGame Developer