diff options
| author | Jeffery Myers <[email protected]> | 2024-06-28 10:08:55 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-06-28 19:08:55 +0200 |
| commit | c1ea32655aad97402ea3b215ab7b414d0809bb8d (patch) | |
| tree | 906414ccf0aa6b82b420c2276ebc26443bf61e28 /examples/models | |
| parent | a3ef381b3e55cd2a7cf2a521f136330a295c5a9d (diff) | |
| download | raylib-c1ea32655aad97402ea3b215ab7b414d0809bb8d.tar.gz raylib-c1ea32655aad97402ea3b215ab7b414d0809bb8d.zip | |
[EXAMPLES] Default Skybox example to not use HDR (#4115)
* Update raylib_api.* by CI
* Default to not use HDR, and note that HDR support requires that raylib be built with HDR enabled.
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'examples/models')
| -rw-r--r-- | examples/models/models_skybox.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/models/models_skybox.c b/examples/models/models_skybox.c index e0e08f3a..fc9627b4 100644 --- a/examples/models/models_skybox.c +++ b/examples/models/models_skybox.c @@ -49,7 +49,8 @@ int main(void) Mesh cube = GenMeshCube(1.0f, 1.0f, 1.0f); Model skybox = LoadModelFromMesh(cube); - bool useHDR = true; + // Set this to true to use an HDR Texture, Note that raylib must be built with HDR Support for this to work SUPPORT_FILEFORMAT_HDR + bool useHDR = false; // Load skybox shader and set required locations // NOTE: Some locations are automatically set at shader loading @@ -157,8 +158,6 @@ int main(void) DrawGrid(10, 1.0f); EndMode3D(); - - //DrawTextureEx(panorama, (Vector2){ 0, 0 }, 0.0f, 0.5f, WHITE); if (useHDR) DrawText(TextFormat("Panorama image from hdrihaven.com: %s", GetFileName(skyboxFileName)), 10, GetScreenHeight() - 20, 10, BLACK); else DrawText(TextFormat(": %s", GetFileName(skyboxFileName)), 10, GetScreenHeight() - 20, 10, BLACK); |
