This commit is contained in:
2025-11-13 18:23:45 +00:00
parent 71ae82ee4d
commit 227f09eeda
2 changed files with 5 additions and 47 deletions
+2 -5
View File
@@ -1,7 +1,5 @@
#version 450 core
//struct CloudPosCol { vec4 pos; vec4 col; };
//struct CloudPosCol { vec3 pos; uint colx; vec4 col; };
struct CloudPosCol { vec3 pos; uint colx; };
struct CloudPosCol { vec3 pos; uint col; };
layout (std140, binding = 0) uniform TheMat { mat4 theMat; } ;
layout (std430, binding = 6) readonly buffer CPos { CloudPosCol data[]; };
const vec2 indices[6] =
@@ -19,8 +17,7 @@ void main()
{
uint i = gl_VertexID / 6;
uint k = gl_VertexID % 6;
//vCol = data[i].col;
vCol = unpackUnorm4x8(data[i].colx);
vCol = unpackUnorm4x8(data[i].col);
vControls = indices[k];
vPos = vec3(data[i].pos.xy + 20*vControls, data[i].pos.z);
gl_Position = theMat * vec4(vPos,1);