Updated duck scene

Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
2021-06-26 23:55:45 +02:00
parent eb27ae4c24
commit 32678e3422
3 changed files with 12 additions and 53 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ void main()
uint index = IndexBuffers[ PushConstants.indexBufferIndex ].indices[gl_VertexIndex];
Vertex vertex = VertexBuffers[ PushConstants.vertexBufferIndex ].vertices[ index ];
color = texture(texSampler[0],vertex.uv[0]).xyz;
color = texture(texSampler[material.index],vertex.uv[0]).xyz;
normal = vertex.normal.xyz;
gl_Position = Camera.projection * Camera.view * PushConstants.render_matrix * vec4(vertex.position.xyz, 1.0);
Binary file not shown.
+11 -52
View File
@@ -3,16 +3,11 @@
"id": "",
"materials": [
{
"baseColor": [
1,
1,
1,
1
],
"baseColor": [ 1, 1, 1, 1 ],
"id": "blinn3-fx",
"metallicFactor": 0,
"pipeline": "DefaultPipeline",
"albedoTexture": "assets://textures/lost.tx"
"albedoTexture": "assets://textures/DuckCM.tx"
}
],
"nodes": [
@@ -21,21 +16,9 @@
{
"components": [
{
"position": [
0,
0,
0
],
"rotation": [
0,
-0,
0
],
"scale": [
1,
1,
1
],
"position": [ 0, 0, 0 ],
"rotation": [ 0, -0, 0 ],
"scale": [ 1, 1, 1 ],
"type": "TransformComponent"
},
{
@@ -49,21 +32,9 @@
{
"components": [
{
"position": [
400.1130065917969,
463.2640075683594,
-431.0780334472656
],
"rotation": [
141.59999847622765,
43.19999710403602,
180.00000500895632
],
"scale": [
1,
0.9999999403953552,
1
],
"position": [ 400.1130065917969, 463.2640075683594, -431.0780334472656 ],
"rotation": [ 141.59999847622765, 43.19999710403602, 180.00000500895632 ],
"scale": [ 1, 0.9999999403953552, 1 ],
"type": "TransformComponent"
}
],
@@ -72,21 +43,9 @@
],
"components": [
{
"position": [
0,
0,
0
],
"rotation": [
0,
-0,
0
],
"scale": [
0.009999999776482582,
0.009999999776482582,
0.009999999776482582
],
"position": [ 0, 0, 0 ],
"rotation": [ 0, -0, 0 ],
"scale": [ 0.009999999776482582, 0.009999999776482582, 0.009999999776482582 ],
"type": "TransformComponent"
}
],