dev #84

Merged
ksenia_mikhailova merged 141 commits from dev into main 2024-10-03 15:30:24 +03:00
1 changed files with 9 additions and 1 deletions
Showing only changes of commit 7c4f7a1a1c - Show all commits

View File

@ -1,6 +1,14 @@
vertexID = gl_VertexID; vertexID = gl_VertexID;
vPosition = position.xyz + normal;
vUv = uv; vUv = uv;
float distanceToNextVertex = length(u_resolution - vec3(0.0, 0.0, 0.0)); float distanceToNextVertex = length(u_resolution - vec3(0.0, 0.0, 0.0));
vDistance = distanceToNextVertex; vDistance = distanceToNextVertex;
vPosition = position.xyz + normal;
vec3 scale;
scale.x = length(modelMatrix[0].xyz);
scale.y = length(modelMatrix[1].xyz);
scale.z = length(modelMatrix[2].xyz);
// Применяем масштаб к позиции вершины
vPosition = position * scale;