Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/opencode-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ github.token }}
KIMI_API_KEY: ${{ secrets.KIMI_API_KEY }}
ZHIPU_API_KEY: ${{ secrets.ZHIPU_API_KEY }}
with:
model: kimi-for-coding/k2p7
model: zhipuai-coding-plan/glm-5.2
use_github_token: true
prompt: ${{ env.PROMPT }}

Expand Down
8 changes: 8 additions & 0 deletions assets/shaders/vulkan/ui_rml.frag
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#version 450

layout(location = 0) in vec4 v_color;
layout(location = 0) out vec4 frag_color;

void main() {
frag_color = v_color;
}
Binary file added assets/shaders/vulkan/ui_rml.frag.spv
Binary file not shown.
20 changes: 20 additions & 0 deletions assets/shaders/vulkan/ui_rml.vert
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#version 450

layout(location = 0) in vec2 a_position;
layout(location = 1) in vec4 a_color;
layout(location = 2) in vec2 a_uv;

layout(location = 0) out vec4 v_color;
layout(location = 1) out vec2 v_uv;

layout(push_constant) uniform PushConstants {
mat4 projection;
layout(offset = 64) vec2 translation;
} pc;

void main() {
gl_Position = pc.projection * vec4(a_position + pc.translation, 0.0, 1.0);
gl_Position.y = -gl_Position.y;
v_color = a_color;
v_uv = a_uv;
}
Binary file added assets/shaders/vulkan/ui_rml.vert.spv
Binary file not shown.
12 changes: 12 additions & 0 deletions assets/shaders/vulkan/ui_rml_tex.frag
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#version 450

layout(location = 0) in vec4 v_color;
layout(location = 1) in vec2 v_uv;

layout(location = 0) out vec4 frag_color;

layout(set = 0, binding = 0) uniform sampler2D ui_texture;

void main() {
frag_color = texture(ui_texture, v_uv) * v_color;
}
Binary file added assets/shaders/vulkan/ui_rml_tex.frag.spv
Binary file not shown.
52 changes: 52 additions & 0 deletions assets/ui/rmlui/create_world.rml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<rml>
<head>
<title>ZigCraft Create World</title>
<link type="text/rcss" href="menu.rcss" />
</head>
<body>
<div class="page">
<div class="shell medium">
<div class="header">
<div class="kicker">NEW WORLD</div>
<h1>CREATE WORLD</h1>
<p id="wizard-subtitle" class="copy">Name the world and choose how its seed is generated.</p>
</div>

<div class="content">
<div class="steps">
<div id="step-details" class="step active">01 DETAILS</div>
<div id="step-terrain" class="step">02 TERRAIN</div>
<div id="step-review" class="step">03 REVIEW</div>
</div>

<div class="wizard-body">
<div id="details-page" class="wizard-page active">
<label for="world-name">WORLD NAME</label>
<input id="world-name" type="text" maxlength="32" placeholder="ENTER A WORLD NAME" />
<label for="world-seed">SEED</label>
<div class="input-row">
<div class="input-grow"><input id="world-seed" type="text" maxlength="32" placeholder="LEAVE BLANK FOR RANDOM" /></div>
<button id="random-seed">RANDOMIZE</button>
</div>
<span class="help">A blank seed creates a new random world.</span>
</div>

<div id="terrain-page" class="wizard-page">
<p class="copy">Pick the generator that will shape this world.</p>
<div id="terrain-rows" class="cards"></div>
</div>

<div id="review-page" class="wizard-page">
<div id="review-summary" class="summary"></div>
</div>
</div>
</div>

<div class="footer">
<button id="wizard-back">CANCEL</button>
<div class="footer-right"><button id="wizard-continue" class="primary">CONTINUE</button></div>
</div>
</div>
</div>
</body>
</rml>
28 changes: 28 additions & 0 deletions assets/ui/rmlui/environment.rml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<rml>
<head>
<title>ZigCraft Environment</title>
<link type="text/rcss" href="menu.rcss" />
</head>
<body>
<div class="page">
<div class="shell medium">
<div class="header">
<div class="kicker">LIGHT PROBE</div>
<h1>Environment</h1>
<p class="copy">Choose the sky probe that lights the scene. Changes apply immediately.</p>
<div id="status" class="header-meta">READY</div>
</div>
<div class="content">
<div class="pane">
<div class="pane-header"><span class="section-label">AVAILABLE ENVIRONMENTS</span></div>
<div id="environment-list" class="pane-body"></div>
</div>
</div>
<div class="footer">
<span class="status">HDR and EXR files in the working directory are listed here.</span>
<div class="footer-right"><button id="back">BACK</button></div>
</div>
</div>
</div>
</body>
</rml>
Loading
Loading