3156 lines
109 KiB
JSON
3156 lines
109 KiB
JSON
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"type": "vec4"
|
|
},
|
|
{
|
|
"id": "light",
|
|
"link": "_lightPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "eye",
|
|
"link": "_cameraPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "lighting",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "receiveShadow",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "roughness",
|
|
"type": "float"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "shadowMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"type": "vec4"
|
|
},
|
|
{
|
|
"id": "light",
|
|
"link": "_lightPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "eye",
|
|
"link": "_cameraPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "lighting",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "receiveShadow",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "roughness",
|
|
"type": "float"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Instancing.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "shadowMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Instancing.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Instancing",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"type": "vec4"
|
|
},
|
|
{
|
|
"id": "light",
|
|
"link": "_lightPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "eye",
|
|
"link": "_cameraPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "lighting",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "receiveShadow",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "roughness",
|
|
"type": "float"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_NormalMapping.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "shadowMap"
|
|
},
|
|
{
|
|
"id": "normalMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_NormalMapping.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_NormalMapping",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "tan",
|
|
"size": 3
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"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"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Skinning.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "shadowMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Skinning.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Skinning",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "bone",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "weight",
|
|
"size": 4
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"type": "vec4"
|
|
},
|
|
{
|
|
"id": "light",
|
|
"link": "_lightPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "eye",
|
|
"link": "_cameraPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "lighting",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "receiveShadow",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "roughness",
|
|
"type": "float"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Texturing.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "stex"
|
|
},
|
|
{
|
|
"id": "shadowMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Texturing.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Texturing",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "tex",
|
|
"size": 2
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"type": "vec4"
|
|
},
|
|
{
|
|
"id": "light",
|
|
"link": "_lightPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "eye",
|
|
"link": "_cameraPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "lighting",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "receiveShadow",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "roughness",
|
|
"type": "float"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_VCols.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "shadowMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_VCols.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_VCols",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "col",
|
|
"size": 4
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"type": "vec4"
|
|
},
|
|
{
|
|
"id": "light",
|
|
"link": "_lightPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "eye",
|
|
"link": "_cameraPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "lighting",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "receiveShadow",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "roughness",
|
|
"type": "float"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Instancing_NormalMapping.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "shadowMap"
|
|
},
|
|
{
|
|
"id": "normalMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Instancing_NormalMapping.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Instancing_NormalMapping",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "tan",
|
|
"size": 3
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"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"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Instancing_Skinning.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "shadowMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Instancing_Skinning.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Instancing_Skinning",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "bone",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "weight",
|
|
"size": 4
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"type": "vec4"
|
|
},
|
|
{
|
|
"id": "light",
|
|
"link": "_lightPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "eye",
|
|
"link": "_cameraPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "lighting",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "receiveShadow",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "roughness",
|
|
"type": "float"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Instancing_Texturing.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "stex"
|
|
},
|
|
{
|
|
"id": "shadowMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Instancing_Texturing.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Instancing_Texturing",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "tex",
|
|
"size": 2
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"type": "vec4"
|
|
},
|
|
{
|
|
"id": "light",
|
|
"link": "_lightPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "eye",
|
|
"link": "_cameraPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "lighting",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "receiveShadow",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "roughness",
|
|
"type": "float"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Instancing_VCols.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "shadowMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Instancing_VCols.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Instancing_VCols",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "col",
|
|
"size": 4
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"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"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_NormalMapping_Skinning.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "shadowMap"
|
|
},
|
|
{
|
|
"id": "normalMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_NormalMapping_Skinning.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_NormalMapping_Skinning",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "tan",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "bone",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "weight",
|
|
"size": 4
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"type": "vec4"
|
|
},
|
|
{
|
|
"id": "light",
|
|
"link": "_lightPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "eye",
|
|
"link": "_cameraPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "lighting",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "receiveShadow",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "roughness",
|
|
"type": "float"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_NormalMapping_Texturing.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "stex"
|
|
},
|
|
{
|
|
"id": "shadowMap"
|
|
},
|
|
{
|
|
"id": "normalMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_NormalMapping_Texturing.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_NormalMapping_Texturing",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "tex",
|
|
"size": 2
|
|
},
|
|
{
|
|
"name": "tan",
|
|
"size": 3
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"type": "vec4"
|
|
},
|
|
{
|
|
"id": "light",
|
|
"link": "_lightPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "eye",
|
|
"link": "_cameraPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "lighting",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "receiveShadow",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "roughness",
|
|
"type": "float"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_NormalMapping_VCols.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "shadowMap"
|
|
},
|
|
{
|
|
"id": "normalMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_NormalMapping_VCols.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_NormalMapping_VCols",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "col",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "tan",
|
|
"size": 3
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"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"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Skinning_Texturing.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "stex"
|
|
},
|
|
{
|
|
"id": "shadowMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Skinning_Texturing.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Skinning_Texturing",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "tex",
|
|
"size": 2
|
|
},
|
|
{
|
|
"name": "bone",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "weight",
|
|
"size": 4
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"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"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Skinning_VCols.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "shadowMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Skinning_VCols.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Skinning_VCols",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "col",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "bone",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "weight",
|
|
"size": 4
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"type": "vec4"
|
|
},
|
|
{
|
|
"id": "light",
|
|
"link": "_lightPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "eye",
|
|
"link": "_cameraPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "lighting",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "receiveShadow",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "roughness",
|
|
"type": "float"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Texturing_VCols.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "stex"
|
|
},
|
|
{
|
|
"id": "shadowMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Texturing_VCols.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Texturing_VCols",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "tex",
|
|
"size": 2
|
|
},
|
|
{
|
|
"name": "col",
|
|
"size": 4
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"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"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Instancing_NormalMapping_Skinning.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "shadowMap"
|
|
},
|
|
{
|
|
"id": "normalMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Instancing_NormalMapping_Skinning.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Instancing_NormalMapping_Skinning",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "tan",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "bone",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "weight",
|
|
"size": 4
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"type": "vec4"
|
|
},
|
|
{
|
|
"id": "light",
|
|
"link": "_lightPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "eye",
|
|
"link": "_cameraPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "lighting",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "receiveShadow",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "roughness",
|
|
"type": "float"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Instancing_NormalMapping_Texturing.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "stex"
|
|
},
|
|
{
|
|
"id": "shadowMap"
|
|
},
|
|
{
|
|
"id": "normalMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Instancing_NormalMapping_Texturing.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Instancing_NormalMapping_Texturing",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "tex",
|
|
"size": 2
|
|
},
|
|
{
|
|
"name": "tan",
|
|
"size": 3
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"type": "vec4"
|
|
},
|
|
{
|
|
"id": "light",
|
|
"link": "_lightPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "eye",
|
|
"link": "_cameraPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "lighting",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "receiveShadow",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "roughness",
|
|
"type": "float"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Instancing_NormalMapping_VCols.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "shadowMap"
|
|
},
|
|
{
|
|
"id": "normalMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Instancing_NormalMapping_VCols.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Instancing_NormalMapping_VCols",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "col",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "tan",
|
|
"size": 3
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"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"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Instancing_Skinning_Texturing.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "stex"
|
|
},
|
|
{
|
|
"id": "shadowMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Instancing_Skinning_Texturing.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Instancing_Skinning_Texturing",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "tex",
|
|
"size": 2
|
|
},
|
|
{
|
|
"name": "bone",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "weight",
|
|
"size": 4
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"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"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Instancing_Skinning_VCols.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "shadowMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Instancing_Skinning_VCols.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Instancing_Skinning_VCols",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "col",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "bone",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "weight",
|
|
"size": 4
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"type": "vec4"
|
|
},
|
|
{
|
|
"id": "light",
|
|
"link": "_lightPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "eye",
|
|
"link": "_cameraPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "lighting",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "receiveShadow",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "roughness",
|
|
"type": "float"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Instancing_Texturing_VCols.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "stex"
|
|
},
|
|
{
|
|
"id": "shadowMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Instancing_Texturing_VCols.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Instancing_Texturing_VCols",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "tex",
|
|
"size": 2
|
|
},
|
|
{
|
|
"name": "col",
|
|
"size": 4
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"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"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_NormalMapping_Skinning_Texturing.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "stex"
|
|
},
|
|
{
|
|
"id": "shadowMap"
|
|
},
|
|
{
|
|
"id": "normalMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_NormalMapping_Skinning_Texturing.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_NormalMapping_Skinning_Texturing",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "tex",
|
|
"size": 2
|
|
},
|
|
{
|
|
"name": "tan",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "bone",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "weight",
|
|
"size": 4
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"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"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_NormalMapping_Skinning_VCols.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "shadowMap"
|
|
},
|
|
{
|
|
"id": "normalMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_NormalMapping_Skinning_VCols.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_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
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"type": "vec4"
|
|
},
|
|
{
|
|
"id": "light",
|
|
"link": "_lightPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "eye",
|
|
"link": "_cameraPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "lighting",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "receiveShadow",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "roughness",
|
|
"type": "float"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_NormalMapping_Texturing_VCols.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "stex"
|
|
},
|
|
{
|
|
"id": "shadowMap"
|
|
},
|
|
{
|
|
"id": "normalMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_NormalMapping_Texturing_VCols.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_NormalMapping_Texturing_VCols",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "tex",
|
|
"size": 2
|
|
},
|
|
{
|
|
"name": "col",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "tan",
|
|
"size": 3
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"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"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Skinning_Texturing_VCols.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "stex"
|
|
},
|
|
{
|
|
"id": "shadowMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Skinning_Texturing_VCols.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Skinning_Texturing_VCols",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "tex",
|
|
"size": 2
|
|
},
|
|
{
|
|
"name": "col",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "bone",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "weight",
|
|
"size": 4
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"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"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Instancing_NormalMapping_Skinning_Texturing.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "stex"
|
|
},
|
|
{
|
|
"id": "shadowMap"
|
|
},
|
|
{
|
|
"id": "normalMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Instancing_NormalMapping_Skinning_Texturing.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Instancing_NormalMapping_Skinning_Texturing",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "tex",
|
|
"size": 2
|
|
},
|
|
{
|
|
"name": "tan",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "bone",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "weight",
|
|
"size": 4
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"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"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Instancing_NormalMapping_Skinning_VCols.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "shadowMap"
|
|
},
|
|
{
|
|
"id": "normalMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Instancing_NormalMapping_Skinning_VCols.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Instancing_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
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"type": "vec4"
|
|
},
|
|
{
|
|
"id": "light",
|
|
"link": "_lightPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "eye",
|
|
"link": "_cameraPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "lighting",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "receiveShadow",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "roughness",
|
|
"type": "float"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Instancing_NormalMapping_Texturing_VCols.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "stex"
|
|
},
|
|
{
|
|
"id": "shadowMap"
|
|
},
|
|
{
|
|
"id": "normalMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Instancing_NormalMapping_Texturing_VCols.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Instancing_NormalMapping_Texturing_VCols",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "tex",
|
|
"size": 2
|
|
},
|
|
{
|
|
"name": "col",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "tan",
|
|
"size": 3
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"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"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Instancing_Skinning_Texturing_VCols.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "stex"
|
|
},
|
|
{
|
|
"id": "shadowMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Instancing_Skinning_Texturing_VCols.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Instancing_Skinning_Texturing_VCols",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "tex",
|
|
"size": 2
|
|
},
|
|
{
|
|
"name": "col",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "bone",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "weight",
|
|
"size": 4
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"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"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_NormalMapping_Skinning_Texturing_VCols.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "stex"
|
|
},
|
|
{
|
|
"id": "shadowMap"
|
|
},
|
|
{
|
|
"id": "normalMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_NormalMapping_Skinning_Texturing_VCols.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_NormalMapping_Skinning_Texturing_VCols",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "tex",
|
|
"size": 2
|
|
},
|
|
{
|
|
"name": "col",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "tan",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "bone",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "weight",
|
|
"size": 4
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"id": "lightMVP",
|
|
"link": "_lightMVP",
|
|
"type": "mat4"
|
|
},
|
|
{
|
|
"id": "diffuseColor",
|
|
"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"
|
|
}
|
|
],
|
|
"cull_mode": "counter_clockwise",
|
|
"depth_write": true,
|
|
"fragment_shader": "attrib_pass_Instancing_NormalMapping_Skinning_Texturing_VCols.frag",
|
|
"id": "attrib_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "stex"
|
|
},
|
|
{
|
|
"id": "shadowMap"
|
|
},
|
|
{
|
|
"id": "normalMap"
|
|
}
|
|
],
|
|
"vertex_shader": "attrib_pass_Instancing_NormalMapping_Skinning_Texturing_VCols.vert"
|
|
}
|
|
],
|
|
"id": "attrib_pass_Instancing_NormalMapping_Skinning_Texturing_VCols",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "nor",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "tex",
|
|
"size": 2
|
|
},
|
|
{
|
|
"name": "col",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "tan",
|
|
"size": 3
|
|
},
|
|
{
|
|
"name": "bone",
|
|
"size": 4
|
|
},
|
|
{
|
|
"name": "weight",
|
|
"size": 4
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |