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

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -