normal :DDD
This commit is contained in:
parent
92caa54ec9
commit
f649dd2189
2 changed files with 3 additions and 4 deletions
|
@ -59,9 +59,8 @@ void main()
|
|||
vec3 B = normalize(v_bitangent);
|
||||
vec3 N = normalize(v_normal);
|
||||
mat3 TBN = mat3(T, B, N);
|
||||
vec3 norm = normalize(TBN * tangentNormal);
|
||||
vec4 texv = texture(u_texture, v_texcoord);
|
||||
//norm = abs(norm);
|
||||
vec3 norm = normalize(TBN * tangentNormal) * 2.0;
|
||||
vec4 texv = texture(u_texture, v_texcoord);
|
||||
|
||||
vec4 ambient = vec4(0.1, 0.1, 0.1, 1.0) * 1.5, light = ambient;
|
||||
|
||||
|
|
|
@ -785,7 +785,7 @@ void Map::Render()
|
|||
// RenderSkybox();
|
||||
|
||||
// Map
|
||||
//glDisable(GL_CULL_FACE); // <- we shouldn't count on this
|
||||
glDisable(GL_CULL_FACE); // <- we shouldn't count on this
|
||||
kp3d::Renderer3D::PushShader(kp3d::Renderer3D::GetMapShader());
|
||||
kp3d::Renderer3D::DrawMesh(m_mesh, m_transform, true, ShouldHighlight);
|
||||
kp3d::Renderer3D::PopShader();
|
||||
|
|
Loading…
Reference in a new issue