Показать сообщение отдельно
Старый 04.12.2013, 20:23   #129
pozitiffcat
Мастер
 
Аватар для pozitiffcat
 
Регистрация: 09.05.2010
Адрес: Самара
Сообщений: 1,083
Написано 254 полезных сообщений
(для 533 пользователей)
Ответ: Clear Engine (Понятный движок)

запилил атрибуты
sProgramInitData progInit;
progInit.add(VertexAttribute::VaPosition"POSITION");
progInit.add(VertexAttribute::VaTexcoord0"TEXCOORD");
progInit.add(VertexAttribute::VaJoint"JOINT");
progInit.add(VertexAttribute::VaWeight"WEIGHT");
progInit.vertexSource readTextFile(context"simple_anim.vs");
progInit.fragmentSource readTextFile(context"simple_anim.fs");
m_program context->video()->createProgram(progInit);

sVertexDeclaration vd;
vd.attributes.push_back(sAttributeDeclaration(VertexAttribute::VaPosition03));
vd.attributes.push_back(sAttributeDeclaration(VertexAttribute::VaTexcoord0242));
vd.stride sizeof(sVertex);
surface->setVertexDeclaration(vd); 
(Offline)
 
Ответить с цитированием