diff options
| author | Ray <raysan5@gmail.com> | 2019-04-05 17:08:46 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2019-04-05 17:08:46 +0200 |
| commit | 9282b8ba83909b353fd34a9f584597338c1928bd (patch) | |
| tree | c0bcdf9b45678575a1450a5149271779541e99fb /examples/models | |
| parent | c600dd07668f301fc1a986326d807f341e6ecb78 (diff) | |
| download | raylib-9282b8ba83909b353fd34a9f584597338c1928bd.tar.gz raylib-9282b8ba83909b353fd34a9f584597338c1928bd.zip | |
ADDED: SetShaderValueTexture()
Some tweaks
Diffstat (limited to 'examples/models')
| -rw-r--r-- | examples/models/models_material_pbr.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/models/models_material_pbr.c b/examples/models/models_material_pbr.c index d393a20d..c1d43a24 100644 --- a/examples/models/models_material_pbr.c +++ b/examples/models/models_material_pbr.c @@ -34,7 +34,12 @@ int main() InitWindow(screenWidth, screenHeight, "raylib [models] example - pbr material"); // Define the camera to look into our 3d world - Camera camera = {{ 4.0f, 4.0f, 4.0f }, { 0.0f, 0.5f, 0.0f }, { 0.0f, 1.0f, 0.0f }, 45.0f, 0 }; + Camera camera = { 0 }; + camera.position = (Vector3){ 4.0f, 4.0f, 4.0f }; // Camera position + camera.target = (Vector3){ 0.0f, 0.5f, 0.0f }; // Camera looking at point + camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Camera up vector (rotation towards target) + camera.fovy = 45.0f; // Camera field-of-view Y + camera.type = CAMERA_PERSPECTIVE; // Camera mode type // Load model and PBR material Model model = LoadModel("resources/pbr/trooper.obj"); |
