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

pentaho - Carte Status / Kettle Slave Server Status page shows status for random runs instead of the latest run -

R summary function in ddply (plyr) in a simple way -

c# - Are delegates created via lambda expressions guaranteed to be cached? -