Push tNear and tFar onto t&, rather than t0 and t1
This commit is contained in:
		
							parent
							
								
									2b9d3a3824
								
							
						
					
					
						commit
						63bb28a94a
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -174,8 +174,8 @@ Box::DoesIntersect(const Ray& ray,
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    /* We have an intersection! */
 | 
			
		||||
    t.push_back(t0);
 | 
			
		||||
    t.push_back(t1);
 | 
			
		||||
    t.push_back(tNear);
 | 
			
		||||
    t.push_back(tFar);
 | 
			
		||||
    return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue