Sketch ini
This commit is contained in:
parent
be0177b1b0
commit
b8bab2264f
16 changed files with 2510 additions and 0 deletions
12
Sketch3D/rsc/shaders/Texture.vert
Normal file
12
Sketch3D/rsc/shaders/Texture.vert
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#version 330 core
|
||||
|
||||
// Input vertex data, different for all executions of this shader.
|
||||
layout(location = 0) in vec3 vertexPosition_modelspace;
|
||||
|
||||
// Output data ; will be interpolated for each fragment.
|
||||
out vec2 UV;
|
||||
|
||||
void main(){
|
||||
gl_Position = vec4(vertexPosition_modelspace.x, vertexPosition_modelspace.y, -0.99, 1);
|
||||
UV = (vertexPosition_modelspace.xy + vec2(1, 1)) / 2.0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue