Manual integration of material-pbr into develop
This commit is contained in:
parent
025dab9907
commit
6546474fa4
13 changed files with 1595 additions and 546 deletions
|
@ -38,7 +38,7 @@ int main()
|
|||
"resources/shaders/glsl330/grayscale.fs"); // Load model shader
|
||||
|
||||
dwarf.material.shader = shader; // Set shader effect to 3d model
|
||||
dwarf.material.texDiffuse = texture; // Bind texture to model
|
||||
dwarf.material.maps[TEXMAP_DIFFUSE].tex = texture; // Bind texture to model
|
||||
|
||||
Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue