it renders but not properly
BIN
resources/EngineResources/Texture/DefaultTexture.png
Normal file
|
After Width: | Height: | Size: 925 B |
|
|
@ -1,15 +0,0 @@
|
|||
{
|
||||
"id": "cube",
|
||||
"meshes": [
|
||||
{
|
||||
"id": "cubemtl_0",
|
||||
"material_id": "cube-mat-1",
|
||||
"offset_vtx": 0,
|
||||
"vtx_size": 480,
|
||||
"offset_idx": 0,
|
||||
"idx_size": 144
|
||||
}
|
||||
],
|
||||
"vtx_path": "resources/models/cube/cube.vtx",
|
||||
"idx_path": "resources/models/cube/cube.idx"
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
[
|
||||
{
|
||||
"id": "cube-mat-0",
|
||||
"texture_path": "",
|
||||
"diffuse_color": {
|
||||
"x": 0.6,
|
||||
"y": 0.6,
|
||||
"z": 0.6,
|
||||
"w": 1.0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "cube-mat-1",
|
||||
"texture_path": "resources/models/cube/cube.png",
|
||||
"diffuse_color": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0,
|
||||
"w": 1.0
|
||||
}
|
||||
}
|
||||
]
|
||||
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 153 KiB After Width: | Height: | Size: 153 KiB |
15
resources/models/cube/cube.json
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"ID": "cube",
|
||||
"Meshes": [
|
||||
{
|
||||
"ID": "cubemtl_0",
|
||||
"MaterialID": "cube-mat-1",
|
||||
"OffsetVertex": 0,
|
||||
"VertexSize": 480,
|
||||
"OffsetIndex": 0,
|
||||
"IndexSize": 144
|
||||
}
|
||||
],
|
||||
"VertexPath": "resources/models/cube/cube.vtx",
|
||||
"IndexPath": "resources/models/cube/cube.idx"
|
||||
}
|
||||
BIN
resources/models/cube/cube.png
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
22
resources/models/cube/cube_mat.json
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
[
|
||||
{
|
||||
"ID": "cube-mat-0",
|
||||
"TexturePath": "",
|
||||
"DiffuseColour": {
|
||||
"X": 0.6,
|
||||
"Y": 0.6,
|
||||
"Z": 0.6,
|
||||
"W": 1.0
|
||||
}
|
||||
},
|
||||
{
|
||||
"ID": "cube-mat-1",
|
||||
"TexturePath": "resources/models/cube/cube.png",
|
||||
"DiffuseColour": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0,
|
||||
"w": 1.0
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
#version 450
|
||||
|
||||
layout(location = 0) in vec3 inPos;
|
||||
layout(location = 1) in vec2 intTextCoords;
|
||||
layout(location = 1) in vec2 inTextCoords;
|
||||
layout(location = 0) out vec2 outTextCoords;
|
||||
|
||||
|
||||
|
|
@ -16,5 +16,5 @@ layout(push_constant) uniform pc{
|
|||
void main()
|
||||
{
|
||||
gl_Position = projUniform.matrix * push_constants.modelMatrix * vec4(inPos,1);
|
||||
outTextCoords = intTextCoords;
|
||||
outTextCoords = inTextCoords;
|
||||
}
|
||||