{ "contexts": [ { "name": "deferred_light", "depth_write": false, "compare_mode": "always", "cull_mode": "none", "blend_source": "blend_one", "blend_destination": "blend_one", "blend_operation": "add", "alpha_blend_source": "blend_one", "alpha_blend_destination": "blend_one", "alpha_blend_operation": "add", "links": [ { "name": "lightPos", "link": "_lampPosition" }, { "name": "lightDir", "link": "_lampDirection" }, { "name": "lightType", "link": "_lampType" }, { "name": "lightIndex", "link": "_lampIndex", "ifdef": ["_Disabled"] }, { "name": "lightColor", "link": "_lampColor" }, { "name": "lightStrength", "link": "_lampStrength" }, { "name": "lightBias", "link": "_lampBias" }, { "name": "spotlightCutoff", "link": "_spotlampCutoff" }, { "name": "spotlightExponent", "link": "_spotlampExponent" }, { "name": "eye", "link": "_cameraPosition" }, { "name": "eyeLook", "link": "_cameraLook" }, { "name": "invVP", "link": "_inverseViewProjectionMatrix" }, { "name": "LWVP", "link": "_biasLampWorldViewProjectionMatrix" }, { "name": "shirr", "link": "_envmapIrradiance", "ifdef": ["_Disabled"] }, { "name": "senvmapRadiance", "link": "_envmapRadiance", "ifdef": ["_Disabled"] }, { "name": "envmapNumMipmaps", "link": "_envmapNumMipmaps", "ifdef": ["_Disabled"] }, { "name": "senvmapBrdf", "link": "_envmapBrdf", "ifdef": ["_Disabled"] }, { "name": "envmapStrength", "link": "_envmapStrength", "ifdef": ["_Disabled"] }, { "name": "sltcMat", "link": "_ltcMat", "ifdef": ["_PolyLight"] }, { "name": "sltcMag", "link": "_ltcMag", "ifdef": ["_PolyLight"] }, { "name": "time", "link": "_time", "ifdef": ["_PolyLight"] } ], "vertex_shader": "deferred_light.vert.glsl", "vertex_shader_path": "../include/pass_viewray.vert.glsl", "fragment_shader": "deferred_light.frag.glsl" } ] }