Added texture data format support

This commit is contained in:
2023-06-20 08:35:28 -07:00
parent 811271dc5d
commit 9574e9a3e9
32 changed files with 189 additions and 57 deletions

View File

@ -1,22 +1,39 @@
<prefab name="EthPrefab" type="">
<asset type="texture" name="texture_eth" />
<asset type="texture" name="texture_eth_faces_day" ref="faceTexture" />
<asset type="texture" name="texture_eth_poses_day" ref="bodyTexture" />
<MeshRenderer />
<QuadMeshHost />
<SimpleBillboardedMaterial texture="texture_eth" />
<TiledSprite tile="0" ref="tiledSprite" sizeType="TILED_SPRITE_SIZE_TYPE_WIDTH_RATIO" />
<MeshRenderer />
<QuadMeshHost />
<SimpleBillboardedMaterial texture="faceTexture" />
<TiledSprite tile="0" ref="faceSprite" sizeType="TILED_SPRITE_SIZE_TYPE_HEIGHT_RATIO" size="0.5" />
<!-- <item>
<MeshRenderer />
<QuadMeshHost />
<SimpleBillboardedMaterial texture="bodyTexture" />
<TiledSprite tile="0" ref="bodySprite" sizeType="TILED_SPRITE_SIZE_TYPE_HEIGHT_RATIO" size="0.5" />
</item> -->
<code type="properties">
TilesetGrid grid;
TilesetGrid gridFace;
TilesetGrid gridBody;
</code>
<code type="init">
this->grid = TilesetGrid(
1, 13,
741, 10270,
this->gridFace = TilesetGrid(
1, 9,
faceTexture->texture.getWidth(), faceTexture->texture.getHeight(),
0, 0,
0, 0
);
tiledSprite->tileset = &grid;
faceSprite->tileset = &gridFace;
this->gridBody = TilesetGrid(
1, 9,
bodyTexture->texture.getWidth(), bodyTexture->texture.getHeight(),
0, 0,
0, 0
);
//bodySprite->tileset = &gridBody;
</code>
</prefab>

View File

@ -1,20 +1,22 @@
<scene name="SceneBase">
<item lookAt="10, 10, 10, 0, 0, 0">
<Camera ref="camera" />
<Camera ref="backCamera" />
</item>
<item ref="eth" prefab="prefabs/EthPrefab" />
<!-- <item lookAt="0, 0, 5, 0, 0, 0" > -->
<item lookAt="5, 5, 5, 0, 0, 0" >
<Camera fov="0.436332" />
<!-- <Camera ref="camera" type="CAMERA_TYPE_ORTHONOGRAPHIC" /> -->
<Camera ref="camera" />
<CameraTexture ref="camTexture" />
</item>
<item>
<UICanvas ref="canvas" camera="camera" />
<UICanvas ref="canvas" camera="backCamera" />
<item ref="textbox" prefab="prefabs/VNTextbox" />
<item>
<item position="100, 0, 0">
<UIImage
alignment="0, 0, 50, 0"
alignX="UI_COMPONENT_ALIGN_START"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 317 KiB