Mip map example view pos and apk name
This commit is contained in:
parent
7929b1c3e6
commit
7fee0ddb05
2 changed files with 3 additions and 1 deletions
|
|
@ -10,7 +10,7 @@
|
|||
<uses-feature android:name="android.hardware.gamepad" android:required="false"/>
|
||||
<uses-feature android:name="android.software.leanback" android:required="false"/>
|
||||
|
||||
<application android:label="vulkanTexture" android:icon="@drawable/icon" android:hasCode="false">
|
||||
<application android:label="vulkanTexturemipmapgen" android:icon="@drawable/icon" android:hasCode="false">
|
||||
<activity android:name="android.app.NativeActivity"
|
||||
android:label="Texture mip map generation"
|
||||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@ public:
|
|||
glm::mat4 projection;
|
||||
glm::mat4 view;
|
||||
glm::mat4 model;
|
||||
glm::vec4 viewPos;
|
||||
float lodBias = 0.0f;
|
||||
uint32_t samplerIndex = 2;
|
||||
} uboVS;
|
||||
|
|
@ -665,6 +666,7 @@ public:
|
|||
uboVS.projection = camera.matrices.perspective;
|
||||
uboVS.view = camera.matrices.view;
|
||||
uboVS.model = glm::rotate(glm::mat4(), glm::radians((timer + 45.0f/360.0f) * 360.0f), glm::vec3(1.0f, 0.0f, 0.0f));
|
||||
uboVS.viewPos = glm::vec4(camera.position, 0.0f) * glm::vec4(-1.0f);
|
||||
VK_CHECK_RESULT(uniformBufferVS.map());
|
||||
memcpy(uniformBufferVS.mapped, &uboVS, sizeof(uboVS));
|
||||
uniformBufferVS.unmap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue