Light tweeks
This commit is contained in:
@@ -63,8 +63,8 @@ void HydraPointShadowSourceSystem::_UpdateShadowMap(HydraID entity_id)
|
||||
|
||||
glm::vec3 camera_pos = GetEngine()->Camera()->GetPosition();
|
||||
|
||||
float aspect = (float)SHADOW_MAP_SIZE/(float)SHADOW_MAP_SIZE;
|
||||
float width = SHADOW_MAP_SIZE;
|
||||
float aspect = (float)POINT_SHADOW_MAP_SIZE/(float)POINT_SHADOW_MAP_SIZE;
|
||||
float width = POINT_SHADOW_MAP_SIZE;
|
||||
float fov = glm::radians(90.0f);
|
||||
|
||||
glm::mat4 shadow_proj = glm::perspectiveFovLH<float>(fov, width, width, view_near, view_far);
|
||||
|
||||
Reference in New Issue
Block a user