Skip to content

Commit

Permalink
update demo content to use groups, helps explain object relationships…
Browse files Browse the repository at this point in the history
… and general app flow
  • Loading branch information
cklosters committed Jul 24, 2022
1 parent 52091e6 commit 26127d2
Show file tree
Hide file tree
Showing 10 changed files with 3,041 additions and 2,688 deletions.
1,015 changes: 528 additions & 487 deletions demos/computeflocking/data/computeflocking.json

Large diffs are not rendered by default.

526 changes: 278 additions & 248 deletions demos/computeparticles/data/computeparticles.json

Large diffs are not rendered by default.

364 changes: 183 additions & 181 deletions demos/copystamp/data/copystamp.json

Large diffs are not rendered by default.

830 changes: 440 additions & 390 deletions demos/facedetection/data/facedetection.json

Large diffs are not rendered by default.

159 changes: 89 additions & 70 deletions demos/helloworld/data/helloworld.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"MinimumZoomDistance": 0.5,
"LimitZoomDistance": false
}
],
"Children": []
Expand Down Expand Up @@ -169,9 +171,10 @@
"Visible": true,
"Mesh": "WorldMesh",
"MaterialInstance": {
"Material": "WorldMaterial",
"Uniforms": [],
"Samplers": [],
"Buffers": [],
"Material": "WorldMaterial",
"BlendMode": "NotSet",
"DepthMode": "NotSet"
},
Expand Down Expand Up @@ -233,50 +236,6 @@
},
"Font": "fonts/Manrope-Light.otf"
},
{
"Type": "nap::ImageFromFile",
"mID": "WorldTexture",
"Usage": "Static",
"ImagePath": "world_texture.png",
"GenerateLods": true
},
{
"Type": "nap::Material",
"mID": "WorldMaterial",
"Uniforms": [],
"Samplers": [
{
"Type": "nap::Sampler2D",
"mID": "world_input_tex_uniform",
"Name": "inWorldTexture",
"MinFilter": "Linear",
"MaxFilter": "Linear",
"MipMapMode": "Linear",
"AddressModeVertical": "ClampToEdge",
"AddressModeHorizontal": "ClampToEdge",
"MaxLodLevel": 1000,
"AnisotropicSamples": "Default",
"Texture": "WorldTexture"
}
],
"Shader": "WorldShader",
"VertexAttributeBindings": [
{
"MeshAttributeID": "Position",
"ShaderAttributeID": "in_Position"
},
{
"MeshAttributeID": "UV0",
"ShaderAttributeID": "in_UV0"
},
{
"MeshAttributeID": "Normal",
"ShaderAttributeID": "in_Normal"
}
],
"BlendMode": "Opaque",
"DepthMode": "InheritFromBlendMode"
},
{
"Type": "nap::RenderWindow",
"mID": "Window0",
Expand All @@ -299,6 +258,90 @@
"Samples": "Four",
"AdditionalSwapImages": 1
},
{
"Type": "nap::ResourceGroup",
"mID": "Rendering",
"Members": [
{
"Type": "nap::ShaderFromFile",
"mID": "WorldShader",
"VertShader": "shaders/helloworld/world.vert",
"FragShader": "shaders/helloworld/world.frag"
},
{
"Type": "nap::SphereMesh",
"mID": "WorldMesh",
"Usage": "Static",
"CullMode": "None",
"PolygonMode": "Fill",
"Radius": 1.0,
"Rings": 50.0,
"Sectors": 50.0,
"Color": {
"Values": [
1.0,
1.0,
1.0,
1.0
]
}
},
{
"Type": "nap::Material",
"mID": "WorldMaterial",
"Uniforms": [],
"Samplers": [
{
"Type": "nap::Sampler2D",
"mID": "world_input_tex_uniform",
"Name": "inWorldTexture",
"MinFilter": "Linear",
"MaxFilter": "Linear",
"MipMapMode": "Linear",
"AddressModeVertical": "ClampToEdge",
"AddressModeHorizontal": "ClampToEdge",
"MaxLodLevel": 1000,
"AnisotropicSamples": "Default",
"Texture": "WorldTexture"
}
],
"Buffers": [],
"Shader": "WorldShader",
"VertexAttributeBindings": [
{
"MeshAttributeID": "Position",
"ShaderAttributeID": "in_Position"
},
{
"MeshAttributeID": "UV0",
"ShaderAttributeID": "in_UV0"
},
{
"MeshAttributeID": "Normal",
"ShaderAttributeID": "in_Normal"
}
],
"BlendMode": "Opaque",
"DepthMode": "InheritFromBlendMode"
}
],
"Children": [
{
"Type": "nap::ResourceGroup",
"mID": "Textures",
"Members": [
{
"Type": "nap::ImageFromFile",
"mID": "WorldTexture",
"Usage": "Static",
"ImagePath": "world_texture.png",
"GenerateLods": true
}
],
"Children": []
}
]
},
{
"Type": "nap::Scene",
"mID": "Scene",
Expand All @@ -320,30 +363,6 @@
"InstanceProperties": []
}
]
},
{
"Type": "nap::ShaderFromFile",
"mID": "WorldShader",
"VertShader": "shaders/helloworld/world.vert",
"FragShader": "shaders/helloworld/world.frag"
},
{
"Type": "nap::SphereMesh",
"mID": "WorldMesh",
"Usage": "Static",
"CullMode": "None",
"PolygonMode": "Fill",
"Radius": 1.0,
"Rings": 50.0,
"Sectors": 50.0,
"Color": {
"Values": [
1.0,
1.0,
1.0,
1.0
]
}
}
]
}
Loading

0 comments on commit 26127d2

Please sign in to comment.