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]; uint index = IndexBuffers[ PushConstants.indexBufferIndex ].indices[gl_VertexIndex];
Vertex vertex = VertexBuffers[ PushConstants.vertexBufferIndex ].vertices[ index ]; 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; normal = vertex.normal.xyz;
gl_Position = Camera.projection * Camera.view * PushConstants.render_matrix * vec4(vertex.position.xyz, 1.0); 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": "", "id": "",
"materials": [ "materials": [
{ {
"baseColor": [ "baseColor": [ 1, 1, 1, 1 ],
1,
1,
1,
1
],
"id": "blinn3-fx", "id": "blinn3-fx",
"metallicFactor": 0, "metallicFactor": 0,
"pipeline": "DefaultPipeline", "pipeline": "DefaultPipeline",
"albedoTexture": "assets://textures/lost.tx" "albedoTexture": "assets://textures/DuckCM.tx"
} }
], ],
"nodes": [ "nodes": [
@@ -21,21 +16,9 @@
{ {
"components": [ "components": [
{ {
"position": [ "position": [ 0, 0, 0 ],
0, "rotation": [ 0, -0, 0 ],
0, "scale": [ 1, 1, 1 ],
0
],
"rotation": [
0,
-0,
0
],
"scale": [
1,
1,
1
],
"type": "TransformComponent" "type": "TransformComponent"
}, },
{ {
@@ -49,21 +32,9 @@
{ {
"components": [ "components": [
{ {
"position": [ "position": [ 400.1130065917969, 463.2640075683594, -431.0780334472656 ],
400.1130065917969, "rotation": [ 141.59999847622765, 43.19999710403602, 180.00000500895632 ],
463.2640075683594, "scale": [ 1, 0.9999999403953552, 1 ],
-431.0780334472656
],
"rotation": [
141.59999847622765,
43.19999710403602,
180.00000500895632
],
"scale": [
1,
0.9999999403953552,
1
],
"type": "TransformComponent" "type": "TransformComponent"
} }
], ],
@@ -72,21 +43,9 @@
], ],
"components": [ "components": [
{ {
"position": [ "position": [ 0, 0, 0 ],
0, "rotation": [ 0, -0, 0 ],
0, "scale": [ 0.009999999776482582, 0.009999999776482582, 0.009999999776482582 ],
0
],
"rotation": [
0,
-0,
0
],
"scale": [
0.009999999776482582,
0.009999999776482582,
0.009999999776482582
],
"type": "TransformComponent" "type": "TransformComponent"
} }
], ],