Skip to content

Conversation

@v6031862-ops
Copy link

// Это код, который вы пишете и компилируете
// для видеокарты через OpenGL/Vulkan/Metal API
#version 300 es
layout (location = 0) in vec3 aPos; // Входная позиция из буфера
layout (location = 1) in vec3 aNormal; // Входная нормаль

uniform mat4 model; // Матрица объекта
uniform mat4 view; // Матрица камеры
uniform mat4 projection; // Матрица проекции

out vec3 FragPos; // Передается в Fragment Shader
out vec3 Normal;

void main()
{
FragPos = vec3(model * vec4(aPos, 1.0));
Normal = mat3(transpose(inverse(model))) * aNormal;
gl_Position = projection * view * vec4(FragPos, 1.0);
}

@google-cla
Copy link

google-cla bot commented Dec 14, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant