48 lines
1.5 KiB
JSON
48 lines
1.5 KiB
JSON
{
|
|
"shader_resources": [
|
|
{
|
|
"contexts": [
|
|
{
|
|
"blend_destination": "blend_zero",
|
|
"blend_source": "blend_one",
|
|
"compare_mode": "always",
|
|
"constants": [
|
|
{
|
|
"id": "light",
|
|
"link": "_lightPosition",
|
|
"type": "vec3"
|
|
},
|
|
{
|
|
"id": "eye",
|
|
"link": "_cameraPosition",
|
|
"type": "vec3"
|
|
}
|
|
],
|
|
"cull_mode": "none",
|
|
"depth_write": true,
|
|
"fragment_shader": "deferred_pass.frag",
|
|
"id": "deferred_pass",
|
|
"texture_units": [
|
|
{
|
|
"id": "gbuffer0"
|
|
},
|
|
{
|
|
"id": "gbuffer1"
|
|
},
|
|
{
|
|
"id": "gbuffer2"
|
|
}
|
|
],
|
|
"vertex_shader": "deferred_pass.vert"
|
|
}
|
|
],
|
|
"id": "deferred_pass",
|
|
"vertex_structure": [
|
|
{
|
|
"name": "pos",
|
|
"size": 2
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |