go mod vendor pins onnxruntime_go v1.12.1, Gio and the rest into v2/vendor so go run/build work without hitting proxy.golang.org (blocked/slow in China). Verified: CGO_ENABLED=1 go build -mod=vendor ./internal/spike and GOOS=windows go build -mod=vendor ./internal/ui both pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
23 lines
372 B
Plaintext
23 lines
372 B
Plaintext
#version 150
|
|
|
|
struct m3x2
|
|
{
|
|
vec3 r0;
|
|
vec3 r1;
|
|
};
|
|
|
|
in vec4 position;
|
|
|
|
vec3 transform3x2(m3x2 t, vec3 v)
|
|
{
|
|
return vec3(dot(t.r0, v), dot(t.r1, v), dot(vec3(0.0, 0.0, 1.0), v));
|
|
}
|
|
|
|
void main()
|
|
{
|
|
m3x2 param = m3x2(vec3(1.0, 0.0, 0.0), vec3(0.0, -1.0, 0.0));
|
|
vec3 param_1 = position.xyz;
|
|
gl_Position = vec4(transform3x2(param, param_1), position.w);
|
|
}
|
|
|