3
votes
2answers
972 views

Which is worst: Too many VertexShader instructions, or FragmentShader instructions?

I want to have a better understanding of how to create shaders with optimal performance and realize where some bottlenecks can occur. Is it usually favorable (when possible) to delegate most of the ...
-1
votes
2answers
299 views

Could a large number, such as 255.000255 be converted to it's RGB channels in a Shader language?

If I had a Vertex Shader constant holding one float value, like: 255.000255 Where: The first 3 numbers are actually red (255), next three are green (000), then the last three are blue (255). ... ...