Elevate Engine 1
Loading...
Searching...
No Matches
Model.cpp File Reference

Go to the source code of this file.

Functions

std::string GetUniformNameByType (Elevate::TexturePtr texture)
 

Function Documentation

◆ GetUniformNameByType()

std::string GetUniformNameByType ( Elevate::TexturePtr  texture)

Definition at line 14 of file Model.cpp.

15{
16 switch (texture->GetUsage())
17 {
18 case Elevate::TextureType::Diffuse: return "diffuseTex";
19 case Elevate::TextureType::Specular: return "specularTex";
20 case Elevate::TextureType::Ambient: return "ambientText";
21 case Elevate::TextureType::Normal: return "normalTex";
22 default: return "";
23 }
24}