(c *CameraSystem)
| 488 | } |
| 489 | |
| 490 | func (s *blendmapShader) SetCamera(c *CameraSystem) { |
| 491 | if s.cameraEnabled { |
| 492 | s.camera = c |
| 493 | s.viewMatrix.Identity().Translate(-s.camera.x, -s.camera.y).Rotate(s.camera.angle) |
| 494 | } else { |
| 495 | scaleX, scaleY := s.projectionMatrix.ScaleComponent() |
| 496 | s.viewMatrix.Translate(-1/scaleX, 1/scaleY) |
| 497 | } |
| 498 | } |
nothing calls this directly
no test coverage detected