better visual

This commit is contained in:
Dan Frumin 2019-12-27 18:27:27 +01:00
parent de42574dc9
commit 8604db96b3
1 changed files with 15 additions and 16 deletions

View File

@ -10,13 +10,12 @@
(define init-scene-state
(scene-state #f 0 0 (dir 1 (- 3) 0)))
(current-material (material #:ambient 0.2
#:diffuse 0.5
#:specular 0.6
#:roughness 0.2))
(current-material (material #:ambient 0.1
#:diffuse 0.6
#:specular 0.3
#:roughness 0.5))
(define (mesh)
(with-emitted (emitted-hex "05ffa1" 0)
(with-color (rgba-hex "05ffa1")
(let* ([lines
(for*/list ([i (in-range -10 10)]
@ -27,7 +26,7 @@
[lines-frozen (freeze (apply combine lines))])
(combine lines-frozen
(move (rotate-y lines-frozen 90)
(dir -7 0 5)))))))
(dir -7 0 5))))))
(define scene
(rotate-y (cube (pos 0 0 0) 1) 30))