Merge remote-tracking branch 'origin/master' into Shadows
# Conflicts: # include/Engine/Rendering/DrawFinalPass.h # include/Engine/Rendering/Renderer.h # resources/Shaders/ForwardPlus.vert.glsl # resources/Shaders/ForwardPlusSkinned.vert.glsl # src/Engine/Rendering/Renderer.cpp
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#version 430
|
||||
|
||||
uniform mat4 PVM;
|
||||
#define MAX_SPLITS 4
|
||||
uniform mat4 TIM;
|
||||
|
||||
uniform mat4 M;
|
||||
uniform mat4 V;
|
||||
@@ -27,8 +28,8 @@ out VertexData{
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = P*V*M * vec4(Position, 1.0);
|
||||
mat4 TIM = transpose(inverse(M));
|
||||
gl_Position = PVM * vec4(Position, 1.0);
|
||||
//mat4 TIM = transpose(inverse(M));
|
||||
Output.Position = Position;
|
||||
Output.TextureCoordinate = TextureCoords;
|
||||
Output.Normal = vec3(TIM * vec4(Normal, 0.0));
|
||||
|
||||
Reference in New Issue
Block a user