File: sphereflake.sc

package info (click to toggle)
sunflow 0.07.2.svn396%2Bdfsg-18
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 11,832 kB
  • sloc: lisp: 168,740; java: 25,216; cpp: 3,265; python: 2,058; ruby: 1,276; xml: 105; sh: 85; makefile: 38
file content (77 lines) | stat: -rw-r--r-- 885 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
image {
	resolution 1920 1080
	aa 2 2
	samples 4
	filter gaussian
}

trace-depths {
	diff 1
	refl 1
	refr 0
}


% |persp|perspShape
camera {
	type   thinlens
	eye    -5 0 -0.9
	target 0 0 0.2
	up     0 0 1
	fov    60
	aspect 1.77777777777
	fdist  5
	lensr  0.01
}

gi { type path samples 16 }

shader {
  name simple1
  type diffuse
  diff 0.5 0.5 0.5
}

shader {
  name glass
  type glass
  eta 1.333
  color 0.8 0.8 0.8
  absorbtion.distance 15
  absorbtion.color { "sRGB nonlinear" 0.2 0.7 0.2 }
}

light {
  type sunsky
  up 0 0 1
  east 0 1 0
  sundir -1 1 0.2
  turbidity 2
  samples 32
}

shader {
  name metal
  type phong
  diff 0.1 0.1 0.1
  spec 0.2 0.2 0.2 30
  samples 4
}


object {
	shader metal
	type sphereflake
	name left
	level 7
}

object {
    shader simple1
    type plane
    p 0 0 -1
    n 0 0 1
}

shader { name ao type amb-occ diff 1 1 1 }
% override ao true