Skip to content

Commit fadb162

Browse files
committed
renderer: added support for skyboxes
1 parent 0a8487d commit fadb162

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+776
-239
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ if (BRENTA_BUILD_EXAMPLES)
285285
add_example(scripting)
286286
add_example(app)
287287
add_example(ecs_demo)
288+
add_example(skybox)
288289

289290
# Demo
290291
file(GLOB_RECURSE DEMO_SOURCES

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ introduction to its API.
2020
- point and directional lights
2121
- GUI using ImGui
2222
- signals
23+
- skyboxes
2324
- window management
2425
- audio loading and playback
2526
- input management with callbacks

TODO

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
- skyblock

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ introduction to its API.
2020
- point and directional lights
2121
- GUI using ImGui
2222
- signals
23+
- skyboxes
2324
- window management
2425
- audio loading and playback
2526
- input management with callbacks

examples/aircraft.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ int main()
101101
.rotate_y(-90.0f)
102102
.scale(glm::vec3(1.0)))
103103
.texture_props(Texture::Properties()
104-
.flipped(true))
104+
.set_flipped(true))
105105
.material(tenno::move(material));
106106
auto model_component =
107107
tenno::make_shared<ModelNodeComponent>(model_builder);

examples/app.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,13 @@ using namespace brenta;
2828

2929
bool App::setup()
3030
{
31-
const int screen_width = 800;
32-
const int screen_height = 600;
33-
3431
Engine::Builder()
3532
.with(Logger::Builder()
3633
.level(Logger::Level::Debug))
3734
.with(Window::Builder()
3835
.title("load model test")
39-
.width(screen_width)
40-
.height(screen_height))
36+
.width(800)
37+
.height(600))
4138
.with(Gl::Builder()
4239
.blending()
4340
.backface_culling()
@@ -75,7 +72,7 @@ bool App::setup()
7572
glm::vec3(0.0f, 1.0f, 0.0f)))
7673
.scale(glm::vec3(1.0)))
7774
.texture_props(Texture::Properties()
78-
.flipped(true))
75+
.set_flipped(true))
7976
.material(material);
8077
auto model =
8178
AssetManager::new_asset<Model>("backpack",

examples/asset_manager.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,14 @@ using namespace brenta;
2525

2626
int main()
2727
{
28-
const int screen_width = 800;
29-
const int screen_height = 600;
30-
3128
Engine::Builder()
3229
.with(Logger::Builder()
3330
.event(Logger::Event::Lifetime)
3431
.level(Logger::Level::Debug))
3532
.with(Window::Builder()
3633
.title("load model test")
37-
.width(screen_width)
38-
.height(screen_height))
34+
.width(800)
35+
.height(600))
3936
.with(Gl::Builder()
4037
.blending()
4138
.backface_culling()
@@ -73,7 +70,7 @@ int main()
7370
glm::vec3(0.0f, 1.0f, 0.0f)))
7471
.scale(glm::vec3(1.0)))
7572
.texture_props(Texture::Properties()
76-
.flipped(true))
73+
.set_flipped(true))
7774
.material(material);
7875
auto model =
7976
AssetManager::new_asset<Model>("backpack",
723 KB
Loading
274 KB
Loading
462 KB
Loading

0 commit comments

Comments
 (0)