https://github.com/simulation-tree/skybox
https://github.com/simulation-tree/skybox
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/simulation-tree/skybox
- Owner: simulation-tree
- Created: 2025-02-20T22:22:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-24T03:04:19.000Z (9 months ago)
- Last Synced: 2025-09-24T05:35:05.339Z (9 months ago)
- Language: C#
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Skybox
Abstraction for skyboxes.
### Simple cubemap
Below is an example of creating a skybox from 6 textures, that uses
a built-in cubemap skybox shader drawing in the background:
```cs
using World world = new();
Texture right = new(world, "Assets/Sunny Skybox/right.jpg");
Texture left = new(world, "Assets/Sunny Skybox/left.jpg");
Texture top = new(world, "Assets/Sunny Skybox/top.jpg");
Texture bottom = new(world, "Assets/Sunny Skybox/bottom.jpg");
Texture front = new(world, "Assets/Sunny Skybox/front.jpg");
Texture back = new(world, "Assets/Sunny Skybox/back.jpg");
CubemapTexture cubemap = new(world, right, left, top, bottom, front, back);
Skybox skybox = new CubemapSkybox(world, camera, cubemap);
```