c++ - How can i use my custom shader in Linderdaum Engine scene? -
currently replace default.sp custom shader , works fine. shader applied objects in scene.
scene->setmtl() works materials , not opengl shaders.
how can use custom shader objects?
there method clscene::setmtlfromshader() accepts 3 clrenderstate variables. 1 each pass: normal, shadow , reflection.
you need create own clrenderstate , set opengl shader program using clrenderstate::setshaderprogram() method. should work fine.
Comments
Post a Comment