Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
a computer program that runs on graphics hardware and provides a high degree of control over how scenes are rendered
2
votes
Accepted
vertex/pixel shaders and "materials"
When you're using shaders, you define the shading model yourself. … The fixed function pipeline was essentially one monolithic "effect" (or pair of vertex/pixel shaders) that you couldn't change. …
3
votes
What are some good resources for learning HLSL?
Cg is not technically HLSL, but syntactically they are virtually identical.
Having said that, it's an older book, but NVIDIA has made "The Cg Tutorial" free to read online. It covers the basics of th …
2
votes
Accepted
OpenGL equivalent of .fx files in GLSL or Cg?
The Cg toolkit supports its own version of effect files, CgFX. These support techniques, states, annotations...
I don't have any experience with them personally, but they are supported by FX Composer …
15
votes
Accepted
Different number of lights => different shader
Because dynamic branching in shaders both pushes shader limits, and is not particularly performant, these variations are usually controlled by preprocessor directives, varying the values of preprocessor … As Shawn mentions in his article:
If you have five, ten, or even fifty shaders, this system is probably not for you. If you have thousands, however, automation is your friend. …