Wgsl Codeblock Highlight
Add this to the head
of your HTML Page, or
add Shiki.
<script src="https://esm.sh/[email protected]" defer async></script>
Edit the codeblock.
@stage(vertex)
fn main() -> @builtin(position) vec4<f32> {
return vec4<f32>(0.0, 0.0, 0.0, 1.0);
}
Copy paste this.