about summary refs log tree commit diff stats
path: root/data/maps/the_quiet
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-08-24 18:23:46 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-08-24 18:23:46 -0400
commitf1cf0b7e2af620fb62dd44c7a5bda3fa0fd972d5 (patch)
tree9b5c13c45756bd8d20b5a9641db40f08f5b83858 /data/maps/the_quiet
parentb7efc4f591dc91876c573e5361f52689705e6e50 (diff)
downloadlingo2-archipelago-f1cf0b7e2af620fb62dd44c7a5bda3fa0fd972d5.tar.gz
lingo2-archipelago-f1cf0b7e2af620fb62dd44c7a5bda3fa0fd972d5.tar.bz2
lingo2-archipelago-f1cf0b7e2af620fb62dd44c7a5bda3fa0fd972d5.zip
Fixed typo in Blue Smiley Annex connection
Diffstat (limited to 'data/maps/the_quiet')
0 files changed, 0 insertions, 0 deletions
oto-objs&id=cd48894563052baeddff64f6bbc13ccc7fa6e081'>cd48894 ^
783b308 ^


783b308 ^
5986041 ^
1e8de01 ^
783b308 ^
de5a458
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28



                                                       
                                      

            


                    



                      
                                            


           
                                                        
                


                                                                                        
                                                                     
  
                                                       
                                                          
 
#version 330 core

layout(location = 0) in vec3 vertexPosition_modelspace;
layout(location = 1) in vec3 vertexNormal;
layout(location = 2) in vec2 vertexUV;

out vec2 UV;
out vec3 normIn;
out vec3 camDirIn;
out vec3 lightDirIn;

uniform mat4 MVP;
uniform mat4 worldMat;

const vec3 Tuning_LightPos = vec3(2, 1, -1);

void main()
{
  gl_Position = MVP * vec4(vertexPosition_modelspace,1);
  UV = vertexUV;
  normIn = vertexNormal;
  
  mat3 invWorldRot = transpose(mat3(worldMat[0].xyz, worldMat[1].xyz, worldMat[2].xyz));
  vec3 worldPos = (worldMat * vec4(vertexPosition_modelspace,1)).xyz;
  
  camDirIn = invWorldRot * (vec3(3.75,0,0) - worldPos);
  lightDirIn = invWorldRot * (Tuning_LightPos - worldPos);
}