Skip to content

Commit d83129b

Browse files
authored
Added billboarding example for sprites and particle fx. (#155)
1 parent e3a0837 commit d83129b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2015
-0
lines changed
15.1 KB
Loading
16.5 KB
Loading
27.7 KB
Loading
24.6 KB
Loading
28.1 KB
Loading
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
animations {
2+
id: "tree1"
3+
images {
4+
image: "/assets/foliage/Tree_stylized.png"
5+
}
6+
playback: PLAYBACK_NONE
7+
}
8+
animations {
9+
id: "tree2"
10+
images {
11+
image: "/assets/foliage/Tree2_stylized.png"
12+
}
13+
playback: PLAYBACK_NONE
14+
}
15+
animations {
16+
id: "tree3"
17+
images {
18+
image: "/assets/foliage/Tree3_stylized.png"
19+
}
20+
playback: PLAYBACK_NONE
21+
}
22+
animations {
23+
id: "rock1"
24+
images {
25+
image: "/assets/foliage/Rock_stylized.png"
26+
}
27+
playback: PLAYBACK_NONE
28+
}
29+
animations {
30+
id: "rock2"
31+
images {
32+
image: "/assets/foliage/Rock2_stylized.png"
33+
}
34+
playback: PLAYBACK_NONE
35+
}
36+
extrude_borders: 2
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
embedded_components {
2+
id: "sprite"
3+
type: "sprite"
4+
data: "default_animation: \"rock1\"\n"
5+
"material: \"/main/material/billboard.material\"\n"
6+
"attributes {\n"
7+
" name: \"billboard_mode\"\n"
8+
" double_values {\n"
9+
" v: 1.0\n"
10+
" }\n"
11+
"}\n"
12+
"textures {\n"
13+
" sampler: \"texture_sampler\"\n"
14+
" texture: \"/assets/foliage/foliage.atlas\"\n"
15+
"}\n"
16+
""
17+
position {
18+
y: 85.0
19+
}
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
embedded_components {
2+
id: "sprite"
3+
type: "sprite"
4+
data: "default_animation: \"rock2\"\n"
5+
"material: \"/main/material/billboard.material\"\n"
6+
"attributes {\n"
7+
" name: \"billboard_mode\"\n"
8+
" double_values {\n"
9+
" v: 1.0\n"
10+
" }\n"
11+
"}\n"
12+
"textures {\n"
13+
" sampler: \"texture_sampler\"\n"
14+
" texture: \"/assets/foliage/foliage.atlas\"\n"
15+
"}\n"
16+
""
17+
position {
18+
y: 73.0
19+
}
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
embedded_components {
2+
id: "sprite"
3+
type: "sprite"
4+
data: "default_animation: \"tree1\"\n"
5+
"material: \"/main/material/billboard.material\"\n"
6+
"attributes {\n"
7+
" name: \"billboard_mode\"\n"
8+
" double_values {\n"
9+
" v: 1.0\n"
10+
" }\n"
11+
"}\n"
12+
"textures {\n"
13+
" sampler: \"texture_sampler\"\n"
14+
" texture: \"/assets/foliage/foliage.atlas\"\n"
15+
"}\n"
16+
""
17+
position {
18+
y: 227.0
19+
}
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
embedded_components {
2+
id: "sprite"
3+
type: "sprite"
4+
data: "default_animation: \"tree2\"\n"
5+
"material: \"/main/material/billboard.material\"\n"
6+
"attributes {\n"
7+
" name: \"billboard_mode\"\n"
8+
" double_values {\n"
9+
" v: 1.0\n"
10+
" }\n"
11+
"}\n"
12+
"textures {\n"
13+
" sampler: \"texture_sampler\"\n"
14+
" texture: \"/assets/foliage/foliage.atlas\"\n"
15+
"}\n"
16+
""
17+
position {
18+
y: 227.0
19+
}
20+
}

0 commit comments

Comments
 (0)