100 lines
2.3 KiB
Plaintext
100 lines
2.3 KiB
Plaintext
{
|
|
"name": "Builtin Forward Lit",
|
|
"properties": [
|
|
{
|
|
"name": "_BaseColor",
|
|
"displayName": "Base Color",
|
|
"type": "Color",
|
|
"defaultValue": "(1,1,1,1)",
|
|
"semantic": "BaseColor"
|
|
},
|
|
{
|
|
"name": "_MainTex",
|
|
"displayName": "Base Map",
|
|
"type": "2D",
|
|
"defaultValue": "white",
|
|
"semantic": "BaseColorTexture"
|
|
}
|
|
],
|
|
"passes": [
|
|
{
|
|
"name": "ForwardLit",
|
|
"tags": {
|
|
"LightMode": "ForwardBase"
|
|
},
|
|
"resources": [
|
|
{
|
|
"name": "PerObjectConstants",
|
|
"type": "ConstantBuffer",
|
|
"set": 1,
|
|
"binding": 0,
|
|
"semantic": "PerObject"
|
|
},
|
|
{
|
|
"name": "MaterialConstants",
|
|
"type": "ConstantBuffer",
|
|
"set": 2,
|
|
"binding": 0,
|
|
"semantic": "Material"
|
|
},
|
|
{
|
|
"name": "BaseColorTexture",
|
|
"type": "Texture2D",
|
|
"set": 3,
|
|
"binding": 0,
|
|
"semantic": "BaseColorTexture"
|
|
},
|
|
{
|
|
"name": "LinearClampSampler",
|
|
"type": "Sampler",
|
|
"set": 4,
|
|
"binding": 0,
|
|
"semantic": "LinearClampSampler"
|
|
}
|
|
],
|
|
"variants": [
|
|
{
|
|
"stage": "Vertex",
|
|
"backend": "D3D12",
|
|
"language": "HLSL",
|
|
"source": "forward-lit.vs.hlsl",
|
|
"entryPoint": "MainVS",
|
|
"profile": "vs_5_0"
|
|
},
|
|
{
|
|
"stage": "Fragment",
|
|
"backend": "D3D12",
|
|
"language": "HLSL",
|
|
"source": "forward-lit.ps.hlsl",
|
|
"entryPoint": "MainPS",
|
|
"profile": "ps_5_0"
|
|
},
|
|
{
|
|
"stage": "Vertex",
|
|
"backend": "OpenGL",
|
|
"language": "GLSL",
|
|
"source": "forward-lit.vert.glsl"
|
|
},
|
|
{
|
|
"stage": "Fragment",
|
|
"backend": "OpenGL",
|
|
"language": "GLSL",
|
|
"source": "forward-lit.frag.glsl"
|
|
},
|
|
{
|
|
"stage": "Vertex",
|
|
"backend": "Vulkan",
|
|
"language": "GLSL",
|
|
"source": "forward-lit.vert.vk.glsl"
|
|
},
|
|
{
|
|
"stage": "Fragment",
|
|
"backend": "Vulkan",
|
|
"language": "GLSL",
|
|
"source": "forward-lit.frag.vk.glsl"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|