better visual
This commit is contained in:
		
							
								
								
									
										11
									
								
								outrun.rkt
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								outrun.rkt
									
									
									
									
									
								
							@@ -10,13 +10,12 @@
 | 
				
			|||||||
(define init-scene-state
 | 
					(define init-scene-state
 | 
				
			||||||
  (scene-state #f 0 0 (dir 1 (- 3) 0)))
 | 
					  (scene-state #f 0 0 (dir 1 (- 3) 0)))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(current-material (material #:ambient 0.2
 | 
					(current-material (material #:ambient 0.1
 | 
				
			||||||
                            #:diffuse 0.5
 | 
					                            #:diffuse 0.6
 | 
				
			||||||
                            #:specular 0.6
 | 
					                            #:specular 0.3
 | 
				
			||||||
                            #:roughness 0.2))
 | 
					                            #:roughness 0.5))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define (mesh)
 | 
					(define (mesh)
 | 
				
			||||||
  (with-emitted (emitted-hex "05ffa1" 0)
 | 
					 | 
				
			||||||
  (with-color (rgba-hex "05ffa1")
 | 
					  (with-color (rgba-hex "05ffa1")
 | 
				
			||||||
    (let* ([lines
 | 
					    (let* ([lines
 | 
				
			||||||
            (for*/list ([i (in-range -10 10)]
 | 
					            (for*/list ([i (in-range -10 10)]
 | 
				
			||||||
@@ -27,7 +26,7 @@
 | 
				
			|||||||
           [lines-frozen (freeze (apply combine lines))])
 | 
					           [lines-frozen (freeze (apply combine lines))])
 | 
				
			||||||
      (combine lines-frozen
 | 
					      (combine lines-frozen
 | 
				
			||||||
               (move (rotate-y lines-frozen 90)
 | 
					               (move (rotate-y lines-frozen 90)
 | 
				
			||||||
                       (dir -7 0 5)))))))
 | 
					                     (dir -7 0 5))))))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define scene
 | 
					(define scene
 | 
				
			||||||
  (rotate-y (cube (pos 0 0 0) 1) 30))
 | 
					  (rotate-y (cube (pos 0 0 0) 1) 30))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user