Testing new material usage
This commit is contained in:
parent
eeb151586f
commit
29761c2519
@ -37,8 +37,8 @@ int main()
|
|||||||
Shader shader = LoadShader("resources/shaders/glsl330/base.vs",
|
Shader shader = LoadShader("resources/shaders/glsl330/base.vs",
|
||||||
"resources/shaders/glsl330/grayscale.fs"); // Load model shader
|
"resources/shaders/glsl330/grayscale.fs"); // Load model shader
|
||||||
|
|
||||||
SetModelShader(&dwarf, shader); // Set shader effect to 3d model
|
dwarf.material.shader = shader; // Set shader effect to 3d model
|
||||||
SetModelTexture(&dwarf, texture); // Bind texture to model
|
dwarf.material.texDiffuse = texture; // Bind texture to model
|
||||||
|
|
||||||
Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position
|
Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user