From 14e90a34aadc83557bb3fbb0d636813a2657fabb Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 23 May 2020 22:01:10 +0900 Subject: [PATCH] shaderir: Add more builtin functions --- internal/shaderir/program.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/shaderir/program.go b/internal/shaderir/program.go index 4ed745853..d53414332 100644 --- a/internal/shaderir/program.go +++ b/internal/shaderir/program.go @@ -140,6 +140,9 @@ const ( Vec2F BuiltinFunc = "vec2" Vec3F BuiltinFunc = "vec3" Vec4F BuiltinFunc = "vec4" + Mat2F BuiltinFunc = "mat2" + Mat3F BuiltinFunc = "mat3" + Mat4F BuiltinFunc = "mat4" Radians BuiltinFunc = "radians" Degrees BuiltinFunc = "degrees" Sin BuiltinFunc = "sin"