Separate input component

This commit is contained in:
Hugo Mårdbrink 2025-08-25 15:47:42 +02:00
parent 29e7b5e499
commit 705f498daa
9 changed files with 318 additions and 178 deletions

View file

@ -1,6 +1,5 @@
package shader
package shaders
import sg "../../sokol/gfx"
import ecs "../../types"
/*
#version:1# (machine generated, don't edit!)
@ -38,7 +37,7 @@ IMG_tex :: 0
SMP_smp :: 0
Vsparams :: struct #align(16) {
using _: struct #packed {
mvp: ecs.Mat4,
mvp: Mat4,
col: [4]f32,
},
}

7
shaders/out/types.odin Normal file
View file

@ -0,0 +1,7 @@
package shaders
Mat4 :: matrix[4, 4]f32
Vec2 :: [2]f32
Vec3 :: [3]f32
Vec4 :: [4]f32

View file

@ -1,8 +1,7 @@
@header package shader
@header package shaders
@header import sg "../../sokol/gfx"
@header import ecs "../../types"
@ctype mat4 ecs.Mat4
@ctype mat4 Mat4
@vs vs
in vec3 pos;