shader programming question

Started by
0 comments, last by Bimble Bob 13 years, 10 months ago
from what i have read it looks like shader programming deals with light and reflection. can they also used for general rotation of meshes ? or do you still use the cpu for that
Advertisement
Pixel shaders can be used for lighting or reflection but to generalise they are used to output the colour of pixels on a render target.

Vertex shaders process individual vertices as input by you when you make a draw call with your graphics API of choice. The vertex shader is where you perform any transformations including rotation.

You can use the CPU to perform rotation on meshes but I would recommend against it as it would increase your bandwidth use and could end up being very slow with lots of meshes.
It's not a bug... it's a feature!

This topic is closed to new replies.

Advertisement