This repository has been archived by the owner on May 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spotlight.yaax
159 lines (157 loc) · 6.65 KB
/
spotlight.yaax
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# Configuration des cameras
cameras:
{
# Camera par defaut (la plus simple d'utilisation)
Camera: (
{
# Taille de l'image (de l'écran) (en pixels)
size = {x: 500; y = 500;};
transform = {
# Position de l'écran
position = {x = 0.0; y = 0.0; z = 0.0;};
# L'Echelle n'est pas suportée
scale = {x = 0.0; y = 0.0; z = 0.0;};
# La rotation n'est pas suportée
rotation = {x = 0.0; y = 0.0; z = 0.0;};
};
# Distance de la caméra par rapport à l'écran
focal = 200.0;
# Nombre de pixel d'éxécution en parallelle (-1 laisse la caméra sélectionner le maximum possible)
maxThreads = -1;
# Filtres (étape après la génération de l'image)
filters = {};
}
);
};
# Primitives in the scene
primitives :
{
# List of spheres
Sphere = (
{
radius = 100.0;
transform = {
position = {x = -150.0; y = 150.0; z = 50.0;};
scale = {x = 1.0; y = 0.0; z = 0.0;};
rotation = {x = 0.0; y = 0.0; z = 0.0;};
}
material = {
color = {r = 68.0; g = 171.0; b = 128.0; a = 255.0;};
# Taux de reflet de la lumière
shininess = 1.0;
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est ambiante)
ambient = {x = 1.0; y = 1.0; z = 1.0};
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est une lampe)
diffuse = {x = 1.0; y = 1.0; z = 1.0};
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est une lampe)
specular = {x = 1.0; y = 1.0; z = 1.0};
type = "PlainMaterial";
};
},
{
radius = 50.0;
transform = {
position = {x = 15.0; y = 100.0; z = 50.0;};
scale = {x = 1.0; y = 0.0; z = 0.0;};
rotation = {x = 0.0; y = 0.0; z = 0.0;};
}
material = {
color = {r = 68.0; g = 171.0; b = 128.0; a = 255.0;};
# Taux de reflet de la lumière
shininess = 1.0;
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est ambiante)
ambient = {x = 1.0; y = 1.0; z = 1.0};
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est une lampe)
diffuse = {x = 1.0; y = 1.0; z = 1.0};
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est une lampe)
specular = {x = 1.0; y = 1.0; z = 1.0};
type = "PlainMaterial";
};
}
);
Plane = (
{
transform = {
position = {x = 0.0; y = 150.0; z = 0.0;};
scale = {x = 0.0; y = 0.0; z = 0.0;};
rotation = {x = 0.0; y = 1.0; z = 0.0;};
};
size = {x = 50.0; y = 50.0; z = 0.0;};
material = {
color = {r = 255.0; g = 255.0; b = 0.0; a = 255.0;};
# Taux de reflet de la lumière
shininess = 1.0;
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est ambiante)
ambient = {x = 1.0; y = 1.0; z = 1.0};
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est une lampe)
diffuse = {x = 1.0; y = 1.0; z = 1.0};
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est une lampe)
specular = {x = 1.0; y = 1.0; z = 1.0};
type = "PlainMaterial";
};
},
{
transform = {
position = {x = 0.0; y = 10.0; z = -100.0;};
scale = {x = 0.0; y = 0.0; z = 0.0;};
rotation = {x = 0.0; y = 0.0; z = 1.0;};
};
size = {x = 1000.0; y = 500.0; z = 500.0;};
material = {
color = {r = 0.0; g = 255.0; b = 255.0; a = 255.0;};
# Taux de reflet de la lumière
shininess = 1.0;
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est ambiante)
ambient = {x = 1.0; y = 1.0; z = 1.0};
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est une lampe)
diffuse = {x = 1.0; y = 1.0; z = 1.0};
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est une lampe)
specular = {x = 1.0; y = 1.0; z = 1.0};
type = "PlainMaterial";
};
}
);
};
# Configuration de la lumière
lights: {
SpotLight = (
{
transform = {
# Position de la lampe
position = {x = -50.0; y = 0.0; z = 0.0;};
# X: agrandis/diminus le rayon de la lampe
# Y: agrandis/diminus la puissance de la lampe
# Z: agrandis/diminus l'angle de la lampe
scale = {x = 1.0; y = 1.0; z = 1.0;};
# vecteur normalisé de direction de la lampe
rotation = {x = 0.0; y = 1.0; z = -0.5;};
};
# Couleur de la lampe
color = {r = 255.0; g = 126.0; b = 300.0; a = 255.0;};
# Puissance de la lampe (plus il est grand, plus il comptera par rapport aux autres lumières)
power = 5.0;
# Rayon du chants d'actions de la lumière
radius = 500.0;
# Angle de la lampe (comme le cone)
angle = 50.0;
}
);
AmbientLight = (
# Première lampe de type AmbientLight
{
transform = {
# Position de la lampe
position = {x = 150.0; y = 0.0; z = 100.0;};
# X: agrandis/diminus la puissance de la lampe
# Y/Z: mettre 0.0
scale = {x = 1.0; y = 0.0; z = 0.0;};
# X/Y/Z: mettre 0.0 (à quoi ça sert de changer la rotation d'une lampe qui écair partout?)
rotation = {x = 0.0; y = 0.0; z = 0.0;};
};
# Couleur de la lampe
color = {r = 50.0; g = 50.0; b = 50.0; a = 255.0;};
# Puissance de la lampe (plus il est grand, plus il comptera par rapport aux autres lumières)
power = 1.0;
}
);
}