Try to fix the lighting
This commit is contained in:
parent
affb1b4f4f
commit
e6782a9a98
7 changed files with 51 additions and 59 deletions
|
|
@ -3,8 +3,10 @@
|
|||
uniform mat3 ndcToWorld;
|
||||
in vec4 a_position;
|
||||
out vec2 worldCoordinates;
|
||||
out vec2 uvCoordinates;
|
||||
|
||||
void main() {
|
||||
worldCoordinates = (vec3(a_position.xy, 1.0) * ndcToWorld).xy;
|
||||
uvCoordinates = ((a_position.xy + vec2(1.0)) / 2.0).xy;
|
||||
gl_Position = a_position;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue