Skip to content

Commit

Permalink
fix: some shader and glb loading and memory stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTroble committed Apr 21, 2024
1 parent 7e9ae8c commit 7676f67
Show file tree
Hide file tree
Showing 10 changed files with 2,800 additions and 2,759 deletions.
2 changes: 0 additions & 2 deletions TGEngine/assets/lightPass.vert
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
"codes": [
{
"code": [
"#version 450",
"#extension GL_KHR_vulkan_glsl: enable",
"out gl_PerVertex {",
" vec4 gl_Position;",
"};",
Expand Down
9 changes: 8 additions & 1 deletion TGEngine/assets/test.frag
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
{
"code": [
"#version 460",
"",
"struct ValueSystem {",
" mat4 model;",
" mat4 normalModel;",
" vec4 color;",
" vec4 padding[7];",
"};",
"layout(binding=2) uniform _system { ValueSystem values; } system;",

"layout(location=0) out vec4 COLOR;",
"layout(location=1) out vec4 NORMAL;",
"layout(location=2) out float ROUGHNESS;",
Expand Down
11 changes: 11 additions & 0 deletions TGEngine/assets/testvec4.vert
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@
{
"code": [
"#version 460",
"struct ValueSystem {",
" mat4 model;",
" mat4 normalModel;",
" vec4 color;",
" vec4 padding[7];",
"};",
"layout(binding=2) uniform _system { ValueSystem values; } system;",
"layout(binding=3) uniform PROJ {",
" mat4 proj;",
"} proj;",

"layout(location=0) in vec4 inpos;",
"out gl_PerVertex {",
" vec4 gl_Position;",
Expand Down
Loading

0 comments on commit 7676f67

Please sign in to comment.