Skip to content

Instantly share code, notes, and snippets.

@jherico
Created June 12, 2018 19:16
Show Gist options
  • Save jherico/53a4c5bc0b9478efb16d5ffda95c023e to your computer and use it in GitHub Desktop.
Save jherico/53a4c5bc0b9478efb16d5ffda95c023e to your computer and use it in GitHub Desktop.
{
"types" : {
"LightingModel" : [
{
"name" : "_UnlitEmissiveLightmapBackground",
"type" : "vec4"
},
{
"name" : "_ScatteringDiffuseSpecularAlbedo",
"type" : "vec4"
},
{
"name" : "_AmbientDirectionalPointSpot",
"type" : "vec4"
},
{
"name" : "_ShowContourObscuranceWireframe",
"type" : "vec4"
},
{
"name" : "_Haze_spareyzw",
"type" : "vec4"
}
],
"lightingModelBuffer" : [
{
"name" : "lightingModel",
"type" : "LightingModel"
}
],
"Material" : [
{
"name" : "_emissiveOpacity",
"type" : "vec4"
},
{
"name" : "_albedoRoughness",
"type" : "vec4"
},
{
"name" : "_fresnelMetallic",
"type" : "vec4"
},
{
"name" : "_scatteringSpare2Key",
"type" : "vec4"
}
],
"materialBuffer" : [
{
"name" : "_mat",
"type" : "Material"
}
],
"TexMapArray" : [
{
"name" : "_texcoordTransforms0",
"type" : "mat4"
},
{
"name" : "_texcoordTransforms1",
"type" : "mat4"
},
{
"name" : "_lightmapParams",
"type" : "vec4"
}
],
"texMapArrayBuffer" : [
{
"name" : "_texMapArray",
"type" : "TexMapArray"
}
],
"ScatteringParameters" : [
{
"name" : "normalBendInfo",
"type" : "vec4"
},
{
"name" : "curvatureInfo",
"type" : "vec4"
},
{
"name" : "debugFlags",
"type" : "vec4"
}
],
"subsurfaceScatteringParametersBuffer" : [
{
"name" : "parameters",
"type" : "ScatteringParameters"
}
]
},
"inputs" : [
{
"type" : "vec2",
"name" : "_texCoord0"
},
{
"type" : "vec2",
"name" : "_texCoord1",
"location" : 1
},
{
"type" : "vec3",
"name" : "_normalWS",
"location" : 5
},
{
"type" : "vec3",
"name" : "_tangentWS",
"location" : 6
},
{
"type" : "vec4",
"name" : "_positionES",
"location" : 9
},
{
"type" : "vec3",
"name" : "_color",
"location" : 2
}
],
"outputs" : [
{
"type" : "vec4",
"name" : "_fragColor0"
},
{
"type" : "vec4",
"name" : "_fragColor1",
"location" : 1
},
{
"type" : "vec4",
"name" : "_fragColor2",
"location" : 2
},
{
"type" : "vec4",
"name" : "_fragColor3",
"location" : 3
}
],
"textures" : [
{
"type" : "sampler2D",
"name" : "albedoMap"
},
{
"type" : "sampler2D",
"name" : "roughnessMap",
"binding" : 4
},
{
"type" : "sampler2D",
"name" : "normalMap",
"binding" : 1
},
{
"type" : "sampler2D",
"name" : "metallicMap",
"binding" : 2
},
{
"type" : "sampler2D",
"name" : "emissiveMap",
"binding" : 3
},
{
"type" : "sampler2D",
"name" : "scatteringSpecularBeckmann",
"binding" : 9
},
{
"type" : "sampler2D",
"name" : "scatteringLUT",
"binding" : 8
}
],
"ubos" : [
{
"type" : "lightingModelBuffer",
"name" : "lightingModelBuffer",
"binding" : 3,
"blockSize" : 80
},
{
"type" : "materialBuffer",
"name" : "materialBuffer",
"binding" : 1,
"blockSize" : 64
},
{
"type" : "texMapArrayBuffer",
"name" : "texMapArrayBuffer",
"binding" : 2,
"blockSize" : 144
},
{
"type" : "subsurfaceScatteringParametersBuffer",
"name" : "subsurfaceScatteringParametersBuffer",
"binding" : 2,
"blockSize" : 48
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment