Skip to content

Commit 3462724

Browse files
committed
Added skybox example
1 parent 24d12f6 commit 3462724

20 files changed

+585
-0
lines changed

model/skybox/all.texture_profiles

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
path_settings {
2+
path: "**"
3+
profile: "Default"
4+
}
5+
profiles {
6+
name: "Default"
7+
platforms {
8+
os: OS_ID_GENERIC
9+
formats {
10+
format: TEXTURE_FORMAT_RGBA
11+
compression_level: BEST
12+
compression_type: COMPRESSION_TYPE_DEFAULT
13+
}
14+
mipmaps: false
15+
max_texture_size: 0
16+
premultiply_alpha: true
17+
}
18+
}

model/skybox/example.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
tags: model
3+
title: Skybox
4+
brief: This example shows how to create a skybox using a cubemap texture.
5+
author: Defold Foundation
6+
scripts: skybox.fp, skybox.vp
7+
---
8+
9+
This example shows how to create a skybox. A skybox is a technique that makes the scene look bigger and more impressive by wrapping the viewer with a texture that goes around the camera 360 degrees.
10+
11+
An in-depth explanation of skybox rendering can be found in [Tutorial 25 of OGL Dev](https://www.ogldev.org/www/tutorial25/tutorial25.html).
12+
13+
14+
Skybox texture from Babylon.js Playground (Apache 2 license)
15 KB
Loading
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
right: "/example/assets/skybox_px.jpg"
2+
left: "/example/assets/skybox_nx.jpg"
3+
top: "/example/assets/skybox_py.jpg"
4+
bottom: "/example/assets/skybox_ny.jpg"
5+
front: "/example/assets/skybox_pz.jpg"
6+
back: "/example/assets/skybox_nz.jpg"
19.9 KB
Loading
1.12 KB
Loading
16.7 KB
Loading
18.9 KB
Loading
9.1 KB
Loading
15.9 KB
Loading

0 commit comments

Comments
 (0)