2016-01-28 01:35:43 +01:00
|
|
|
{
|
|
|
|
"shader_resources": [
|
|
|
|
{
|
|
|
|
"contexts": [
|
|
|
|
{
|
|
|
|
"blend_destination": "blend_zero",
|
|
|
|
"blend_source": "blend_one",
|
|
|
|
"compare_mode": "less",
|
|
|
|
"constants": [
|
|
|
|
{
|
|
|
|
"id": "M",
|
|
|
|
"link": "_modelMatrix",
|
|
|
|
"type": "mat4"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "NM",
|
|
|
|
"link": "_normalMatrix",
|
|
|
|
"type": "mat4"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "V",
|
|
|
|
"link": "_viewMatrix",
|
|
|
|
"type": "mat4"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "P",
|
|
|
|
"link": "_projectionMatrix",
|
|
|
|
"type": "mat4"
|
|
|
|
},
|
|
|
|
{
|
2016-01-31 00:20:07 +01:00
|
|
|
"id": "LMVP",
|
|
|
|
"link": "_lightModelViewProjectionMatrix",
|
2016-01-28 01:35:43 +01:00
|
|
|
"type": "mat4"
|
|
|
|
},
|
|
|
|
{
|
2016-01-31 00:20:07 +01:00
|
|
|
"id": "albedo_color",
|
2016-01-28 01:35:43 +01:00
|
|
|
"type": "vec4"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "light",
|
|
|
|
"link": "_lightPosition",
|
|
|
|
"type": "vec3"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "eye",
|
|
|
|
"link": "_cameraPosition",
|
|
|
|
"type": "vec3"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "skinBones",
|
|
|
|
"link": "_skinBones",
|
|
|
|
"type": "floats"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "lighting",
|
|
|
|
"type": "bool"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "receiveShadow",
|
|
|
|
"type": "bool"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "roughness",
|
|
|
|
"type": "float"
|
2016-01-31 00:20:07 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "metalness",
|
|
|
|
"type": "float"
|
2016-01-28 01:35:43 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"cull_mode": "counter_clockwise",
|
|
|
|
"depth_write": true,
|
|
|
|
"fragment_shader": "forward_AlphaTest_NormalMapping_Skinning_VCols.frag",
|
|
|
|
"id": "forward",
|
|
|
|
"texture_units": [
|
|
|
|
{
|
|
|
|
"id": "shadowMap"
|
|
|
|
},
|
|
|
|
{
|
2016-01-31 00:20:07 +01:00
|
|
|
"id": "snormal"
|
2016-01-28 01:35:43 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"vertex_shader": "forward_AlphaTest_NormalMapping_Skinning_VCols.vert"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"id": "forward_AlphaTest_NormalMapping_Skinning_VCols",
|
|
|
|
"vertex_structure": [
|
|
|
|
{
|
|
|
|
"name": "pos",
|
|
|
|
"size": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "nor",
|
|
|
|
"size": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "col",
|
|
|
|
"size": 4
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "tan",
|
|
|
|
"size": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "bone",
|
|
|
|
"size": 4
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "weight",
|
|
|
|
"size": 4
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|