I’ve found many tutorials on writing CG shaders but none that show how to integrate it into a D3D or GL scene. Is there a tutorial that would show how CG would integrate into these?
Share
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.
I’m using this on iOS/Android OpenGL ES 2.0, but this could work for you too: hlsl2glslfork. It’s a library that you can compile/link right into you application, and it can translate your Cg/HLSL to GLSL right before you call
glShaderSource.