From 33d5f67044d104d69cb2d11e78e6a79bc20d4c4e Mon Sep 17 00:00:00 2001 From: pryazha Date: Wed, 23 Jul 2025 20:55:29 +0500 Subject: some prb examples --- pbr/1.1.lighting/default.vert | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'pbr/1.1.lighting/default.vert') diff --git a/pbr/1.1.lighting/default.vert b/pbr/1.1.lighting/default.vert index d83afbf..1b953d7 100644 --- a/pbr/1.1.lighting/default.vert +++ b/pbr/1.1.lighting/default.vert @@ -1,2 +1,17 @@ #version 330 core -layout(location = 0) + +layout(location = 0) in vec3 position; +layout(location = 2) in vec2 tex_coords; + +out vert_t { + vec2 tex_coords; +} vert; + +uniform mat4 model; + +void main(void) +{ + gl_Position = model * vec4(position, 1.0); + + vert.tex_coords = tex_coords; +} -- cgit v1.2.3-70-g09d2