Added korean location
This commit is contained in:
1 parent
d5ef126264
commit
96e748715b
80 files changed
+18949
-80
No files matched your search
@@ -2,6 +2,12 @@
|
||||
attribute vec3 vPosition;
|
||||
attribute vec2 vTexCoord;
|
||||
attribute vec3 vNormal;
|
||||
#ifdef INSTANCED
|
||||
attribute vec4 iModel0;
|
||||
attribute vec4 iModel1;
|
||||
attribute vec4 iModel2;
|
||||
attribute vec4 iModel3;
|
||||
#endif
|
||||
|
||||
varying vec2 texCoord;
|
||||
varying vec4 fragPosLightSpace;
|
||||
@@ -17,12 +23,19 @@ uniform vec3 uPlayerEyePos;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 eyePos = ModelViewMatrix * vec4(vPosition, 1.0);
|
||||
vec4 worldPos = vec4(vPosition, 1.0);
|
||||
vec3 normal = vNormal;
|
||||
#ifdef INSTANCED
|
||||
mat4 instanceModel = mat4(iModel0, iModel1, iModel2, iModel3);
|
||||
worldPos = instanceModel * worldPos;
|
||||
normal = normalize(mat3(instanceModel) * normal);
|
||||
#endif
|
||||
vec4 eyePos = ModelViewMatrix * worldPos;
|
||||
fogDistance = length(eyePos.xyz - uPlayerEyePos);
|
||||
gl_Position = ProjectionModelViewMatrix * vec4(vPosition, 1.0);
|
||||
gl_Position = ProjectionModelViewMatrix * worldPos;
|
||||
texCoord = vTexCoord;
|
||||
fragViewPos = eyePos.xyz;
|
||||
fragNormal = mat3(ModelViewMatrix) * vNormal;
|
||||
fragNormal = mat3(ModelViewMatrix) * normal;
|
||||
fragPosLightSpace = uLightFromCamera * eyePos;
|
||||
fragWorldXZ = vPosition.xz;
|
||||
fragWorldXZ = worldPos.xz;
|
||||
}
|
||||
Reference in new issue
Block a user