normal :DDD

This commit is contained in:
KP 2024-07-29 17:10:48 -05:00
parent 92caa54ec9
commit f649dd2189
2 changed files with 3 additions and 4 deletions

View file

@ -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);
vec3 norm = normalize(TBN * tangentNormal) * 2.0;
vec4 texv = texture(u_texture, v_texcoord);
//norm = abs(norm);
vec4 ambient = vec4(0.1, 0.1, 0.1, 1.0) * 1.5, light = ambient;

View file

@ -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();