Multiple Demo Changes

Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
2021-07-25 10:48:35 +02:00
parent f9018c9878
commit 7e25e7198d
13 changed files with 1009 additions and 33 deletions
+135 -6
View File
@@ -13,6 +13,26 @@
"pipeline": "DefferedPipeline",
"roughnessFactor": 1
},
{
"baseColor": [ 1, 0, 0, 1 ],
"emissiveFactor": [ 1, 1, 1 ],
"id": "DotMaterial",
"metallicFactor": 0,
"pipeline": "DefferedPipeline",
"roughnessFactor": 1
},
{
"albedoTexture": "assets://textures/Default_albedo.tx",
"baseColor": [ 1, 1, 1, 1 ],
"emissiveFactor": [ 1, 1, 1 ],
"emissiveTexture": "assets://textures/Default_emissive.tx",
"id": "CustomMaterial",
"metallicFactor": 1,
"metallicRoughnessTexture": "assets://textures/Default_AO-Default_metalRoughness.tx",
"normalTexture": "assets://textures/Default_normal.tx",
"pipeline": "CustomPipeline",
"roughnessFactor": 1
},
{
"baseColor": [ 1, 1, 1, 1 ],
"emissiveFactor": [ 1, 1, 1 ],
@@ -34,16 +54,11 @@
{
"components": [
{
"position": [ 0, 0, 0 ],
"position": [ -1, 0, 0 ],
"rotation": [ -180, 0, 0 ],
"scale": [ 1, 1, 1 ],
"type": "TransformComponent"
},
{
"type": "ScriptComponent",
"script_name": "RotationHelper",
"script_path": "scripts://MainScene/objectRotation.lua"
},
{
"material": "Material_MR",
"mesh": "assets://meshes/DamagedHelmet_mesh_helmet_LP_13930damagedHelmet.mesh",
@@ -52,6 +67,32 @@
],
"id": "node_damagedHelmet_-6514"
},
{
"components": [
{
"position": [ 1, 0, 0 ],
"rotation": [ -180, 0, 0 ],
"scale": [ 1, 1, 1 ],
"type": "TransformComponent"
},
{
"material": "CustomMaterial",
"mesh": "assets://meshes/DamagedHelmet_mesh_helmet_LP_13930damagedHelmet.mesh",
"type": "RenderComponent"
},
{
"type": "RigidbodyComponent",
"mass": 1,
"restitution": 1,
"rigidbodyType": "Kinematic",
"collisionShape": {
"type": "Sphere",
"radius": 1.0
}
}
],
"id": "CustomDamagedHelmet"
},
{
"components": [
{
@@ -170,10 +211,98 @@
"script_name": "MainCameraRotationHelper",
"script_path": "scripts://MainScene/CameraHelper.lua"
}
],
"children": [
{
"id": "Center",
"components": [
{
"type": "TransformComponent",
"position": [0,0,-0.2],
"rotation": [0,0,0],
"scale": [0.005,0.005,0.005]
},
{
"type": "RenderComponent",
"material": "DotMaterial",
"mesh": "assets://meshes/lightSphere_Sphere.mesh"
}
]
},
{
"id": "GravityGun",
"components": [
{
"type": "TransformComponent",
"position": [ 0, 0, 0 ],
"rotation": [ 0, 0, 0 ],
"scale": [ 1, 1, 1 ]
},
{
"type": "ScriptComponent",
"script_name": "GravityGunScript",
"script_path": "scripts://demo/gravitygun.lua"
}
]
}
]
}
]
}
],
"pipelines": [
{
"id": "DefaultPipeline",
"shaderStages": [
{
"type": "Vertex",
"shaderPath": "shaders://default.vert"
},
{
"type": "Fragment",
"shaderPath": "shaders://default.frag"
}
]
},
{
"id": "LightSpherePipeline",
"shaderStages": [
{
"type": "Vertex",
"shaderPath": "shaders://lightObject.vert"
},
{
"type": "Fragment",
"shaderPath": "shaders://lightObject.frag"
}
]
},
{
"id": "DefferedPipeline",
"shaderStages": [
{
"type": "Vertex",
"shaderPath": "shaders://mrt.vert"
},
{
"type": "Fragment",
"shaderPath": "shaders://mrt.frag"
}
]
},
{
"id": "CustomPipeline",
"shaderStages": [
{
"type": "Vertex",
"shaderPath": "shaders://custom.vert"
},
{
"type": "Fragment",
"shaderPath": "shaders://custom.frag"
}
]
}
],
"activeCamera": "Camera.RotationHelper"
}