Files
Seele/res/shaders/Placeholder.asset
T

100 lines
2.1 KiB
Plaintext
Raw Normal View History

2020-06-02 11:46:18 +02:00
{
"name": "Placeholder",
"profile": "BlinnPhong",
"params": {
"diffuseTexture": {
"type": "Texture2D"
},
"specularTexture": {
"type": "Texture2D"
},
"normalTexture": {
"type": "Texture2D"
},
"uvScale": {
"type": "float",
"default": "0.0f"
},
"metallic": {
"type": "float",
"default": "0.0f"
},
"subsurface": {
"type": "float",
"default": "0.0f"
},
"roughness": {
"type": "float",
"default": "0.5f"
},
"specularTint": {
"type": "float",
"default": "0.0f"
},
"anisotropic": {
"type": "float",
"default": "0.0f"
},
"sheen": {
"type": "float",
"default": "0.0f"
},
"sheenTint": {
"type": "float",
"default": "0.5f"
},
"clearCoat": {
"type": "float",
"default": "0.0f"
},
"clearCoatGloss": {
"type": "float",
"default": "1.0f"
2020-09-19 14:36:50 +02:00
},
"worldOffset": {
"type": "float3",
"default": "float3(0, 0, 0)"
2020-06-02 11:46:18 +02:00
},
"textureSampler": {
"type": "SamplerState"
}
},
2020-09-19 14:36:50 +02:00
"code": {
"baseColor": [
"return diffuseTexture.Sample(textureSampler, input.texCoords[0] * uvScale).xyz;"
],
"metallic": [
"return 0;"
],
"normal": [
"return normalTexture.Sample(textureSampler, input.texCoords[0] * uvScale).xyz;"
],
"specular": [
"return specularTexture.Sample(textureSampler, input.texCoords[0] * uvScale).x;"
],
"roughness": [
"return roughness;"
],
"specularTint": [
"return specularTint;"
],
"anisotropic": [
"return anisotropic;"
],
"sheen": [
"return sheen;"
],
"sheenTint": [
"return sheenTint;"
],
"clearCoat": [
"return clearCoat;"
],
"clearCoatGloss": [
"return clearCoatGloss;"
],
"worldOffset": [
"return worldOffset;"
]
}
2020-06-02 11:46:18 +02:00
}