Fix Jitter when zooming in close range
This commit is contained in:
		
							parent
							
								
									3e92c452f2
								
							
						
					
					
						commit
						2a9268567c
					
				| @ -143,7 +143,7 @@ class Camera{ | |||||||
|      */ |      */ | ||||||
|     public eyeScale(scale: number): this { |     public eyeScale(scale: number): this { | ||||||
|         let dis = this.eyeDist; |         let dis = this.eyeDist; | ||||||
|         if ((dis + scale) < 0) scale = .1 - dis; |         if ((dis + scale) < 0) scale = this.EL - dis; | ||||||
|         vec3.set(this.eye, |         vec3.set(this.eye, | ||||||
|             (this.eye[0] / dis) * scale + this.eye[0], |             (this.eye[0] / dis) * scale + this.eye[0], | ||||||
|             (this.eye[1] / dis) * scale + this.eye[1], |             (this.eye[1] / dis) * scale + this.eye[1], | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user