Unity Developers Question:
Download Job Interview Questions and Answers PDF
Explain what a vertex shader is, and what a pixel shader is?
Answer:
Vertex shader is a script that runs for each vertex of the mesh, allowing the developer to apply transformation matrixes, and other operations, in order to control where this vertex is in the 3D space, and how it will be projected on the screen.
Pixel shader is a script that runs for each fragment (pixel candidate to be rendered) after three vertexes are processed in a mesh's triangle. The developer can use information like the UV / TextureCoords and sample textures in order to control the final color that will be rendered on screen.
Pixel shader is a script that runs for each fragment (pixel candidate to be rendered) after three vertexes are processed in a mesh's triangle. The developer can use information like the UV / TextureCoords and sample textures in order to control the final color that will be rendered on screen.
Download Unity 3D Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Where do you want to be in five years? | How would you make the games you're playing better? |