mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 09:03:52 +00:00
feat(editor): procedural noise generator, sky presets, viewport lighting
- Noise Generator in Sculpt panel: applies procedural value noise with configurable frequency, amplitude, octaves, and seed to create hills/valleys across entire tile instantly - Sky/Lighting presets: View > Sky menu with Day (blue sky, high sun), Dusk (orange, low sun), Night (dark blue, moonlight) - Viewport clear color and light direction now configurable at runtime - Noise uses smoothstep interpolation with octave fractal layering
This commit is contained in:
parent
f5fe9a0101
commit
42749e9b58
7 changed files with 108 additions and 2 deletions
|
|
@ -568,7 +568,7 @@ void EditorViewport::updatePerFrameUBO() {
|
|||
data.view = camera_->getViewMatrix();
|
||||
data.projection = camera_->getProjectionMatrix();
|
||||
data.lightSpaceMatrix = glm::mat4(1.0f);
|
||||
data.lightDir = glm::vec4(glm::normalize(glm::vec3(0.5f, -1.0f, 0.3f)), 0.0f);
|
||||
data.lightDir = glm::vec4(lightDir_, 0.0f);
|
||||
data.lightColor = glm::vec4(1.0f, 0.95f, 0.85f, 0.0f);
|
||||
data.ambientColor = glm::vec4(0.3f, 0.3f, 0.35f, 0.0f);
|
||||
data.viewPos = glm::vec4(camera_->getPosition(), 0.0f);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue