Reduce poked cloud verx size

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