com.github.asus4.texture-source 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Texture Source
|
|
2
2
|
|
|
3
|
-
TextureSource is a utility
|
|
3
|
+
TextureSource is a utility that provides a consistent API to get the texture from various sources.
|
|
4
4
|
|
|
5
5
|
## Install via UPM
|
|
6
6
|
|
|
@@ -18,12 +18,46 @@ Add the following setting to `Packages/manifest.json`
|
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"com.github.asus4.texture-source": "0.1
|
|
21
|
+
"com.github.asus4.texture-source": "0.2.1",
|
|
22
22
|
...// other dependencies
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
## How To Use
|
|
28
|
+
|
|
29
|
+
After installing the library, attach `VirtualTextureSource` to the GameObject.
|
|
30
|
+
|
|
31
|
+

|
|
32
|
+
|
|
33
|
+
Then, right-click on the project panel and create the TexureSource scriptable object that you want to use. You can set different sources for the Editor and Runtime.
|
|
34
|
+
|
|
35
|
+

|
|
36
|
+
|
|
37
|
+
Currently provides the following sources:
|
|
38
|
+
|
|
39
|
+
#### WebCam Texture Source
|
|
40
|
+
|
|
41
|
+
Includes collecting device rotation.
|
|
42
|
+
|
|
43
|
+

|
|
44
|
+
|
|
45
|
+
#### Video Texture Source
|
|
46
|
+
|
|
47
|
+
Useful when using test videos only in the Editor.
|
|
48
|
+
|
|
49
|
+

|
|
50
|
+
|
|
51
|
+
#### AR Foundation Texture Source
|
|
52
|
+
|
|
53
|
+
Provides AR camera texture access. It supports both ARCore/ARKit.
|
|
54
|
+
|
|
55
|
+

|
|
56
|
+
|
|
27
57
|
## Acknowledgement
|
|
28
58
|
|
|
29
59
|
Inspired from [TestTools](https://github.com/keijiro/TestTools)
|
|
60
|
+
|
|
61
|
+
## License
|
|
62
|
+
|
|
63
|
+
[MIT](https://github.com/asus4/TextureSource/blob/main/Packages/com.github.asus4.texture-source/LICENSE)
|
package/package.json
CHANGED