Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
205 changes: 78 additions & 127 deletions shaders/compiled/PbrBasic.frag.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,53 +7,43 @@
"kind": "constantBuffer",
"elementType": {
"kind": "struct",
"name": "MaterialBlock",
"name": "PbrMaterial",
"fields": [
{
"name": "material",
"name": "baseColor",
"type": {
"kind": "struct",
"name": "PbrMaterial",
"fields": [
{
"name": "baseColor",
"type": {
"kind": "vector",
"elementCount": 4,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 0, "size": 16, "elementStride": 4}
},
{
"name": "metalness",
"type": {
"kind": "scalar",
"scalarType": "float32"
},
"binding": {"kind": "uniform", "offset": 16, "size": 4, "elementStride": 0}
},
{
"name": "roughness",
"type": {
"kind": "scalar",
"scalarType": "float32"
},
"binding": {"kind": "uniform", "offset": 20, "size": 4, "elementStride": 0}
},
{
"name": "ao",
"type": {
"kind": "scalar",
"scalarType": "float32"
},
"binding": {"kind": "uniform", "offset": 24, "size": 4, "elementStride": 0}
}
]
"kind": "vector",
"elementCount": 4,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 0, "size": 32, "elementStride": 0}
"binding": {"kind": "uniform", "offset": 0, "size": 16, "elementStride": 4}
},
{
"name": "metalness",
"type": {
"kind": "scalar",
"scalarType": "float32"
},
"binding": {"kind": "uniform", "offset": 16, "size": 4, "elementStride": 0}
},
{
"name": "roughness",
"type": {
"kind": "scalar",
"scalarType": "float32"
},
"binding": {"kind": "uniform", "offset": 20, "size": 4, "elementStride": 0}
},
{
"name": "ao",
"type": {
"kind": "scalar",
"scalarType": "float32"
},
"binding": {"kind": "uniform", "offset": 24, "size": 4, "elementStride": 0}
}
]
},
Expand All @@ -63,53 +53,43 @@
"elementVarLayout": {
"type": {
"kind": "struct",
"name": "MaterialBlock",
"name": "PbrMaterial",
"fields": [
{
"name": "material",
"name": "baseColor",
"type": {
"kind": "struct",
"name": "PbrMaterial",
"fields": [
{
"name": "baseColor",
"type": {
"kind": "vector",
"elementCount": 4,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 0, "size": 16, "elementStride": 4}
},
{
"name": "metalness",
"type": {
"kind": "scalar",
"scalarType": "float32"
},
"binding": {"kind": "uniform", "offset": 16, "size": 4, "elementStride": 0}
},
{
"name": "roughness",
"type": {
"kind": "scalar",
"scalarType": "float32"
},
"binding": {"kind": "uniform", "offset": 20, "size": 4, "elementStride": 0}
},
{
"name": "ao",
"type": {
"kind": "scalar",
"scalarType": "float32"
},
"binding": {"kind": "uniform", "offset": 24, "size": 4, "elementStride": 0}
}
]
"kind": "vector",
"elementCount": 4,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 0, "size": 16, "elementStride": 4}
},
{
"name": "metalness",
"type": {
"kind": "scalar",
"scalarType": "float32"
},
"binding": {"kind": "uniform", "offset": 0, "size": 32, "elementStride": 0}
"binding": {"kind": "uniform", "offset": 16, "size": 4, "elementStride": 0}
},
{
"name": "roughness",
"type": {
"kind": "scalar",
"scalarType": "float32"
},
"binding": {"kind": "uniform", "offset": 20, "size": 4, "elementStride": 0}
},
{
"name": "ao",
"type": {
"kind": "scalar",
"scalarType": "float32"
},
"binding": {"kind": "uniform", "offset": 24, "size": 4, "elementStride": 0}
}
]
},
Expand Down Expand Up @@ -180,6 +160,14 @@
"scalarType": "int32"
},
"binding": {"kind": "uniform", "offset": 192, "size": 4, "elementStride": 0}
},
{
"name": "useSsao",
"type": {
"kind": "scalar",
"scalarType": "uint32"
},
"binding": {"kind": "uniform", "offset": 196, "size": 4, "elementStride": 0}
}
]
},
Expand Down Expand Up @@ -245,57 +233,24 @@
"scalarType": "int32"
},
"binding": {"kind": "uniform", "offset": 192, "size": 4, "elementStride": 0}
}
]
},
"binding": {"kind": "uniform", "offset": 0, "size": 208, "elementStride": 0}
}
}
},
{
"name": "params",
"binding": {"kind": "descriptorTableSlot", "space": 3, "index": 2},
"type": {
"kind": "constantBuffer",
"elementType": {
"kind": "struct",
"name": "EffectParams",
"fields": [
{
"name": "useSsao",
"type": {
"kind": "scalar",
"scalarType": "uint32"
},
"binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0}
}
]
},
"containerVarLayout": {
"binding": {"kind": "descriptorTableSlot", "index": 0}
},
"elementVarLayout": {
"type": {
"kind": "struct",
"name": "EffectParams",
"fields": [
{
"name": "useSsao",
"type": {
"kind": "scalar",
"scalarType": "uint32"
},
"binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0}
"binding": {"kind": "uniform", "offset": 196, "size": 4, "elementStride": 0}
}
]
},
"binding": {"kind": "uniform", "offset": 0, "size": 16, "elementStride": 0}
"binding": {"kind": "uniform", "offset": 0, "size": 208, "elementStride": 0}
}
}
},
{
"name": "shadowAtlas",
"binding": {"kind": "descriptorTableSlot", "space": 3, "index": 3},
"binding": {"kind": "descriptorTableSlot", "space": 3, "index": 2},
"type": {
"kind": "constantBuffer",
"elementType": {
Expand Down Expand Up @@ -511,13 +466,9 @@
"name": "light",
"binding": {"kind": "descriptorTableSlot", "space": 3, "index": 1, "used": 1}
},
{
"name": "params",
"binding": {"kind": "descriptorTableSlot", "space": 3, "index": 2, "used": 1}
},
{
"name": "shadowAtlas",
"binding": {"kind": "descriptorTableSlot", "space": 3, "index": 3, "used": 1}
"binding": {"kind": "descriptorTableSlot", "space": 3, "index": 2, "used": 1}
},
{
"name": "shadowMap",
Expand Down
Loading