fixed Android version (Sony Xperia Z3 Compact)
This commit is contained in:
1 parent
77616bef24
commit
1d4b103f06
8 files changed
+165
-104
No files matched your search
@@ -1,15 +1,15 @@
|
||||
precision lowp float;
|
||||
|
||||
uniform sampler2D Texture;
|
||||
uniform sampler2D NormalMap;
|
||||
//uniform sampler2D NormalMap;
|
||||
|
||||
uniform vec3 LightDirection;
|
||||
uniform float TimeOfDayCoef1;
|
||||
uniform float TimeOfDayCoef2;
|
||||
uniform float invCoef;
|
||||
//uniform float invCoef;
|
||||
uniform vec3 TimeOfDayColor;
|
||||
varying vec2 texCoord;
|
||||
|
||||
varying vec3 camVec;
|
||||
varying vec2 texCoord;
|
||||
varying vec3 normVec;
|
||||
varying vec3 posVec;
|
||||
|
||||
|
||||
@@ -1,15 +1,11 @@
|
||||
attribute vec3 vPosition;
|
||||
attribute vec3 Normal;
|
||||
attribute vec3 Tangent;
|
||||
attribute vec3 Binormal;
|
||||
attribute vec2 vTexCoord;
|
||||
|
||||
uniform mat4 ModelViewMatrix;
|
||||
//uniform mat4 ModelViewMatrix;
|
||||
uniform mat4 ProjectionMatrix;
|
||||
uniform vec3 CamPos;
|
||||
|
||||
varying vec2 texCoord;
|
||||
varying vec3 camVec;
|
||||
varying vec3 normVec;
|
||||
varying vec3 posVec;
|
||||
|
||||
@@ -19,15 +15,6 @@ void main()
|
||||
gl_Position = ProjectionMatrix * vec4(vPosition.xyz, 1.0);
|
||||
texCoord = vTexCoord;
|
||||
|
||||
vec3 cVec = (CamPos - vPosition.xyz);
|
||||
|
||||
mat3 rot;
|
||||
rot[0] = Tangent;
|
||||
rot[1] = Binormal;
|
||||
rot[2] = Normal;
|
||||
|
||||
camVec = cVec * rot;
|
||||
|
||||
normVec = Normal;
|
||||
|
||||
posVec = vPosition.xyz;
|
||||
|
||||
Reference in new issue
Block a user