DirectX has SetTechnique function that you can use to set which technique in the shader will be used.
Does OpenGL have something like this?
I know my way around glsl fairly decent. But I’m just wishing I can do techniques like I could in HLSL.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no equivalent to the D3DX library for OpenGL. There are no GLSL “techniques”, “passes”, and so forth.