Code: Select all
...
driver->addVertexDescriptor("custom");
driver->getVertexDescriptor("custom")->addAttribute("inPosition", 3, irr::video::EVAS_POSITION, irr::video::EVAT_FLOAT);
driver->getVertexDescriptor("custom")->addAttribute("inNormal", 3, irr::video::EVAS_NORMAL, irr::video::EVAT_FLOAT);
driver->getVertexDescriptor("custom")->addAttribute("inColor", 4, irr::video::EVAS_COLOR, irr::video::EVAT_UBYTE);
driver->getVertexDescriptor("custom")->addAttribute("inTexCoord0", 2, irr::video::EVAS_TEXCOORD0, irr::video::EVAT_FLOAT);
driver->getVertexDescriptor("custom")->addAttribute("inCustom", 3, irr::video::EVAS_CUSTOM, irr::video::EVAT_FLOAT);
...
Code: Select all
...
varying vec3 inCustom;
...