Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I am looking for definitive information on Shaderlab's API and the Cg language. The documentation I have found so far has been by way of example programs rather than a definition of APIs. Also, searching for a specific API term such as Sampler2D didn't turn up anything definitive.
What reference documentation is available or possibly documentation of precursors to Shaderlab and Cg?
\$\begingroup\$Hi & welcome to StackExchange! This Q&A site is best for solving specific problems that you've encountered in game development, but it's not the best place to learn how to get started, or to poll about personal experiences. For finding documentation and tutorials, a simple search will get you more answers, faster. To chat about dev experiences, consider using a discussion forum like GameDev.net. Once you've started on your shader and hit a particular snag, ask here to get specific help.\$\endgroup\$
\$\begingroup\$This is still a question about documentation, which as I pointed out before, can be answered with a simple search. For example, searching Sampler 2D CG leads to this CG documentation from NVIDIA (See section 3.2.1 "Sampler Objects"), and the ShaderLab docs are linked in my comment above. If after reading the documentation you still have a specific question you're unsure how to answer, please do ask that here.\$\endgroup\$