Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // na początku game.cpp
- tex2 = Content::LoadTexture("../resources/czlowiek512.png");
- sheep = Content::LoadModel("../resources/czlowiek.obj");
- sheep->GetMesh(0)->GetMaterial().texture = tex2;
- //po wcztaniu samego modelu, ale przed sheep->Draw();:
- sheep->GetMesh(0)->GetMaterial().Color = glm::vec3(0, 1, 0);
- shaderColor->GetParameter("tex")->SetValue(*sheep->GetMesh(i)->GetMaterial().texture);
- sheep->Draw();
- // u mnie nie chciala dzialac textura bo zdjece png bylo za duze, zmniejszylem do 512x512
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement