add computed image_map
This commit is contained in:
		
							parent
							
								
									bc7de7e7eb
								
							
						
					
					
						commit
						963cd5a752
					
				@ -21,7 +21,11 @@ global_settings {
 | 
			
		||||
#declare HFDIR  = "WS/nanim/";
 | 
			
		||||
#declare HFCK   = mod(clock, 2000);
 | 
			
		||||
#declare HFNAME = concat(HFDIR, str(HFCK , -5, 0), ".pgm");
 | 
			
		||||
#debug concat("- - - - - - - ", HFNAME, "\n")
 | 
			
		||||
 | 
			
		||||
#declare CMDIR  = "WS/colmap/";
 | 
			
		||||
#declare CMNAME = concat(CMDIR, str(HFCK , -5, 0), ".pgm");
 | 
			
		||||
 | 
			
		||||
#debug concat("- - - - - - - ", HFNAME, "  ", CMNAME, "\n")
 | 
			
		||||
 | 
			
		||||
#declare GravityField = object
 | 
			
		||||
{
 | 
			
		||||
@ -31,8 +35,13 @@ height_field {
 | 
			
		||||
        translate <-0.5, 0, -0.5>
 | 
			
		||||
	}
 | 
			
		||||
texture {
 | 
			
		||||
	pigment { color Gray70 }
 | 
			
		||||
	finish { phong 0.55 }
 | 
			
		||||
	pigment {
 | 
			
		||||
		image_map { pgm CMNAME }
 | 
			
		||||
		// image_map { png "WS/mire1024.png" }
 | 
			
		||||
		rotate x*90
 | 
			
		||||
		translate <-0.5, 0, -0.5>
 | 
			
		||||
		}
 | 
			
		||||
	finish { phong 0.45 }
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user