Fixed a few small things.

This commit is contained in:
2023-06-20 09:29:16 -07:00
parent 9574e9a3e9
commit d679b06b9f
13 changed files with 118 additions and 23 deletions

View File

@@ -5,10 +5,10 @@
<item ref="eth" prefab="prefabs/EthPrefab" />
<!-- <item lookAt="0, 0, 5, 0, 0, 0" > -->
<item lookAt="5, 5, 5, 0, 0, 0" >
<!-- <Camera ref="camera" type="CAMERA_TYPE_ORTHONOGRAPHIC" /> -->
<Camera ref="camera" />
<item lookAt="0, 0, 5, 0, 0, 0" >
<!-- <item lookAt="5, 5, 5, 0, 0, 0" > -->
<Camera ref="camera" type="CAMERA_TYPE_ORTHONOGRAPHIC" />
<!-- <Camera ref="camera" /> -->
<CameraTexture ref="camTexture" />
</item>
@@ -33,7 +33,7 @@
</item>
<code type="init">
useEvent([&]{
useEvent([&amp;]{
assertNotNull(camTexture);
assertNotNull(image);
camTexture->renderTarget.setSize(image->getWidth(), image->getHeight());