{ "textures": { "shadow-map": { "type": 0, "size": { "width": 1024, "height": 1024 }, "format": 2, "mipsCount": 1 }, "ssaa-map": { "type": 0, "size": { "scaleByCanvas": 1.0 }, "format": 2, "mipsCount": 1 }, "main-map": { "type": 0, "size": { "scaleByCanvas": 1.0 }, "format": 2, "mipsCount": 1 }, "blur-map-0": { "type": 0, "size": { "scaleByCanvas": 0.25 }, "format": 2, "mipsCount": 1 }, "blur-map-1": { "type": 0, "size": { "scaleByCanvas": 0.25 }, "format": 2, "mipsCount": 1 }, "ao-stub": { "type": 0, "url": "textures/ao_stub.png", "priority": 0, "genMips": false } }, "passes": { "sky": { "shaders": [ "sky.vs", "sky.fs" ], "samplers": { "colorMap": { "filter": 2 } }, "states": { "cullFace": 1 } }, "shadow": { "shaders": [ "shadow.vs", "shadow.fs" ], "samplers": { "colorMap": { "filter": 2 }, "opacityMap": { "filter": 2 } } }, "default": { "shaders": [ "default.vs", "default.fs" ], "samplers": { "colorMap": { "filter": 2 } } }, "pano": { "shaders": [ "pano.vs", "pano.fs" ], "samplers": { "colorMap": { "filter": 2 } }, "states": { "cullFace": 0 } }, "color": { "shaders": [ "color.vs", "color.fs" ] }, "debug": { "shaders": [ "debug.vs", "debug.fs" ] }, "surface": { "shaders": [ "surface.vs", "surface.fs" ], "samplers": { "shadowMap": { "filter": 0 }, "aoMap": { "filter": 1 }, "ambientCube": { "filter": 1 }, "colorMap": { "filter": 2 }, "detailMap": { "filter": 2 }, "normalMap": { "filter": 2 }, "heightMap": { "filter": 2 }, "specularMap": { "filter": 2 }, "reflectionMap": { "filter": 2 } }, "states": { "cullFace": { "pin": "CULL_MODE" } } }, "ground": { "shaders": [ "ground.vs", "ground.fs" ], "samplers": { "shadowMap": { "filter": 0 }, "aoMap": { "filter": 1 }, "ambientCube": { "filter": 1 }, "blendMap": { "filter": 1 }, "layer0Map": { "filter": 2 }, "layer1Map": { "filter": 2 }, "layer2Map": { "filter": 2 }, "layer3Map": { "filter": 2 }, "colorMap": { "filter": 2 }, "normalMap": { "filter": 2 }, "detailMap": { "filter": 2 } } }, "vegetation": { "shaders": [ "vegetation.vs", "vegetation.fs" ], "samplers": { "shadowMap": { "filter": 0 }, "ambientCube": { "filter": 1 }, "colorMap": { "filter": 2 }, "opacityMap": { "filter": 2 } }, "states": { "cullFace": 0 } }, "vegetation_alpha": { "shaders": [ "vegetation.vs", "vegetation_alpha.fs" ], "samplers": { "shadowMap": { "filter": 0 }, "ambientCube": { "filter": 1 }, "colorMap": { "filter": 2 }, "opacityMap": { "filter": 2 } }, "states": { "cullFace": 0, "blending": true, "depthWrite": false, "srcBlend": 6, "destBlend": 7 } }, "glass": { "shaders": [ "glass.vs", "glass.fs" ], "samplers": { "shadowMap": { "filter": 0 }, "aoMap": { "filter": 1 }, "ambientCube": { "filter": 1 }, "reflectionMap": { "filter": 2 } }, "states": { "cullFace": 0, "blending": true, "srcBlend": 6, "destBlend": 7 } }, "water": { "shaders": [ "water.vs", "water.fs" ], "samplers": { "shadowMap": { "filter": 0 }, "ambientCube": { "filter": 1 }, "normalMap": { "filter": 2 }, "reflectionMap": { "filter": 2 } }, "states": { "cullFace": 0, "blending": true, "srcBlend": 6, "destBlend": 7 } }, "resolve": { "shaders": [ "quad.vs", "resolve.fs" ], "samplers": { "sourceMap": { "filter": 1, "addressU": 2, "addressV": 2 } }, "states": { "depthTest": false } }, "bright": { "shaders": [ "quad.vs", "bright.fs" ], "samplers": { "sourceMap": { "filter": 1, "addressU": 2, "addressV": 2 } }, "states": { "depthTest": false } }, "v-blur": { "shaders": [ "quad.vs", "blur_v.fs" ], "samplers": { "sourceMap": { "filter": 1, "addressU": 2, "addressV": 2 } }, "states": { "depthTest": false } }, "h-blur": { "shaders": [ "quad.vs", "blur_h.fs" ], "samplers": { "sourceMap": { "filter": 1, "addressU": 2, "addressV": 2 } }, "states": { "depthTest": false } }, "combine": { "shaders": [ "quad.vs", "combine.fs" ], "samplers": { "sourceMap": { "filter": 1, "addressU": 2, "addressV": 2 }, "bloomMap": { "filter": 1, "addressU": 2, "addressV": 2 } }, "states": { "depthTest": false } } }, "stages": [ { "name": "shadow", "target": { "texture": "shadow-map", "mip": 0, "depth": true }, "clearState": { "color": { "r": 1, "g": 1, "b": 1, "a": 1 }, "depth": 1.0 }, "properties": { "mxVP": { "type": "StageViewProj4x4" } } }, { "name": "main", "target": { "texture": "ssaa-map", "mip": 0, "depth": true }, "clearState": { "color": { "r": 1, "g": 1, "b": 1, "a": 1 }, "depth": 1.0 }, "useCulling": true, "properties": { "mxTLP": { "type": "Matrix4x4" }, "mxVP": { "type": "StageViewProj4x4" }, "viewPos": { "type": "StageViewPos3" }, "shadowMap": { "type": "Texture2D", "value": "shadow-map" }, "shadowMapSize": { "type": "TextureSize", "value": "shadow-map" }, "shadowMapTexelSize": { "type": "TexelSize", "value": "shadow-map" }, "reflectionMap": { "type": "TextureCube", "value": null }, "ambientCube": { "type": "Texture2D", "value": null }, "ambientIntensity": { "type": "Float", "value": 0.0 }, "lightDir": { "type": "Vector3" }, "lightIntensity": { "type": "Float", "value": 1.0 } } }, { "name": "alpha", "target": { "texture": "ssaa-map", "mip": 0, "depth": true }, "useCulling": true, "properties": { "mxTLP": { "type": "Matrix4x4" }, "mxVP": { "type": "StageViewProj4x4" }, "viewPos": { "type": "StageViewPos3" }, "shadowMap": { "type": "Texture2D", "value": "shadow-map" }, "shadowMapSize": { "type": "TextureSize", "value": "shadow-map" }, "shadowMapTexelSize": { "type": "TexelSize", "value": "shadow-map" }, "ambientCube": { "type": "Texture2D", "value": null }, "ambientIntensity": { "type": "Float", "value": 0.0 }, "lightDir": { "type": "Vector3" }, "lightIntensity": { "type": "Float", "value": 1.0 } } }, { "name": "resolve", "target": { "texture": "main-map", "mip": 0, "depth": true }, "properties": { "texelSize": { "type": "TexelSize", "value": "ssaa-map" }, "sourceMap": { "type": "Texture2D", "value": "ssaa-map" } } }, { "name": "bright", "target": { "texture": "blur-map-0", "mip": 0, "depth": false }, "properties": { "texelSize": { "type": "TexelSize", "value": "main-map" }, "sourceMap": { "type": "Texture2D", "value": "main-map" } } }, { "name": "v-blur", "target": { "texture": "blur-map-1", "mip": 0, "depth": false }, "properties": { "texelSize": { "type": "TexelSize", "value": "blur-map-0" }, "sourceMap": { "type": "Texture2D", "value": "blur-map-0" } } }, { "name": "h-blur", "target": { "texture": "blur-map-0", "mip": 0, "depth": false }, "properties": { "texelSize": { "type": "TexelSize", "value": "blur-map-1" }, "sourceMap": { "type": "Texture2D", "value": "blur-map-1" } } }, { "name": "combine", "properties": { "sourceMap": { "type": "Texture2D", "value": "main-map" }, "bloomMap": { "type": "Texture2D", "value": "blur-map-0" } } } ], "materials": [ { "name": "sky", "passes": [null, "sky", null, null, null, null, null, null], "properties": { "colorMap": { "type": "Texture2D", "value": null } }, "instanceProperties": { "mxW": { "type": "InstanceTransform4x4" } } }, { "name": "default", "passes": [null, "default", null, null, null, null, null, null], "useCulling": true, "instanceProperties": { "mxW": { "type": "InstanceTransform4x4" }, "colorMap": { "type": "Texture2D", "value": null } } }, { "name": "pano", "passes": [null, "pano", null, null, null, null, null, null], "useCulling": true, "instanceProperties": { "mxW": { "type": "InstanceTransform4x4" }, "colorMap": { "type": "Texture2D", "value": null } } }, { "name": "color", "passes": [null, "color", null, null, null, null, null, null], "useCulling": true, "instanceProperties": { "mxW": { "type": "InstanceTransform4x4" }, "color": { "type": "Color", "value": { "r": 0.5, "g": 0.5, "b": 0.5, "a": 1.0 } } } }, { "name": "debug", "passes": [null, "debug", null, null, null, null, null, null], "instanceProperties": { "color": { "type": "Color", "value": { "r": 1.0, "g": 1.0, "b": 1.0, "a": 1.0 } } } }, { "name": "relief", "passes": ["shadow", "surface", null, null, null, null, null, null], "useCulling": true, "pins": { "SHADOWS": 1, "AO_MAP": 1, "COLOR_MAP": 1, "NORMAL_MAP": 1, "HEIGHT_POM": 1, "HEIGHT_POM_STEPS": 10 }, "instanceProperties": { "mxW": { "type": "InstanceTransform4x4" }, "parallaxScale": { "type": "Float", "value": 0.012 }, "aoMap": { "type": "Texture2D", "value": "ao-teapot" }, "colorMap": { "type": "Texture2D", "value": "brick_d" }, "normalMap": { "type": "Texture2D", "value": "brick_n" }, "heightMap": { "type": "Texture2D", "value": "brick_h" } } }, { "name": "rough", "passes": ["shadow", "surface", null, null, null, null, null, null], "useCulling": true, "pins": { "SHADOWS": 1, "AO_MAP": 1, "COLOR_MAP": 1, "NORMAL_MAP": 1, "HEIGHT_PM": 1 }, "instanceProperties": { "mxW": { "type": "InstanceTransform4x4" }, "parallaxScale": { "type": "Float", "value": 0.0045 }, "aoMap": { "type": "Texture2D", "value": "ao-teapot" }, "colorMap": { "type": "Texture2D", "value": "concrete_d" }, "normalMap": { "type": "Texture2D", "value": "concrete_n" }, "heightMap": { "type": "Texture2D", "value": "concrete_h" } } }, { "name": "mat", "passes": ["shadow", "surface", null, null, null, null, null, null], "useCulling": true, "pins": { "SHADOWS": 1, "COLOR": 1, "AO_MAP": 1, "NORMAL_MAP": 1 }, "instanceProperties": { "mxW": { "type": "InstanceTransform4x4" }, "color": { "type": "Color", "value": { "r": 0.9, "g": 0.9, "b": 0.9 } }, "aoMap": { "type": "Texture2D", "value": "ao-teapot" }, "normalMap": { "type": "Texture2D", "value": "plaster_n" } } }, { "name": "lacure", "passes": ["shadow", "surface", null, null, null, null, null, null], "useCulling": true, "pins": { "SHADOWS": 1, "AO_MAP": 1, "COLOR_MAP": 1, "NORMAL_MAP": 1, "SPECULAR": 1, "SPECULAR_MAP": 1 }, "instanceProperties": { "mxW": { "type": "InstanceTransform4x4" }, "specularPower": { "type": "Float", "value": 32 }, "specularIntensity": { "type": "Float", "value": 0.4 }, "aoMap": { "type": "Texture2D", "value": "ao-stub" }, "colorMap": { "type": "Texture2D", "value": "planks_d" }, "normalMap": { "type": "Texture2D", "value": "planks_n" }, "specularMap": { "type": "Texture2D", "value": "planks_s" } } }, { "name": "metal", "passes": ["shadow", "surface", null, null, null, null, null, null], "useCulling": true, "pins": { "SHADOWS": 1, "AO_MAP": 1, "COLOR_MAP": 1, "NORMAL_MAP": 1, "SPECULAR": 1, "SPECULAR_MAP": 1, "REFLECTION": 1 }, "instanceProperties": { "mxW": { "type": "InstanceTransform4x4" }, "specularPower": { "type": "Float", "value": 32 }, "specularIntensity": { "type": "Float", "value": 0.4 }, "fresnelPower": { "type": "Float", "value": 0.6 }, "fresnelOffset": { "type": "Float", "value": 0.05 }, "reflectionIntensity": { "type": "Float", "value": 0.2 }, "aoMap": { "type": "Texture2D", "value": "ao-stub" }, "colorMap": { "type": "Texture2D", "value": "planks_d" }, "normalMap": { "type": "Texture2D", "value": "planks_n" }, "specularMap": { "type": "Texture2D", "value": "planks_s" } } }, { "name": "ground", "passes": [null, "ground", null, null, null, null, null, null], "pins": { "SHADOWS": 1, "AO_MAP": 1, "DETAIL_MAP": 1, "NORMAL_MAP": 1 }, "useCulling": true, "instanceProperties": { "mxW": { "type": "InstanceTransform4x4" }, "detailScale": { "type": "Float", "value": 5.5 }, "aoMap": { "type": "Texture2D", "value": "ao-teapot" }, "colorMap": { "type": "Texture2D", "value": "grass_d" }, "normalMap": { "type": "Texture2D", "value": "grass_n" }, "detailMap": { "type": "Texture2D", "value": "grass_dt" } } }, { "name": "ground_blend", "passes": [null, "ground", null, null, null, null, null, null], "pins": { "SHADOWS": 1, "AO_MAP": 1, "BLEND_MAP": 1 }, "useCulling": true, "instanceProperties": { "mxW": { "type": "InstanceTransform4x4" }, "layersScale": { "type": "Float", "value": 5.5 }, "aoMap": { "type": "Texture2D", "value": "terrain_ao" }, "blendMap": { "type": "Texture2D", "value": "terrain_blend" }, "layer0Map": { "type": "Texture2D", "value": "earth_01" }, "layer1Map": { "type": "Texture2D", "value": "grass_01" }, "layer2Map": { "type": "Texture2D", "value": "grass_02" }, "layer3Map": { "type": "Texture2D", "value": "sand_01" } } }, { "name": "fence", "passes": ["shadow", "surface", null, null, null, null, null, null], "pins": { "SHADOWS": 1, "AO_MAP": 1, "COLOR_MAP": 1, "NORMAL_MAP": 1, "SPECULAR": 1, "ALPHA_CUT": 1, "CULL_MODE": 0 }, "useCulling": true, "instanceProperties": { "mxW": { "type": "InstanceTransform4x4" }, "specularPower": { "type": "Float", "value": 32 }, "specularIntensity": { "type": "Float", "value": 0.3 }, "aoMap": { "type": "Texture2D", "value": "ao-teapot" }, "colorMap": { "type": "Texture2D", "value": "fence_d" }, "normalMap": { "type": "Texture2D", "value": "fence_n" }, "alphaCutRef": { "type": "Float", "value": 0.45 } } }, { "name": "water", "passes": [null, "water", null, null, null, null, null, null], "pins": { "SHADOWS": 1 }, "useCulling": true, "properties": { "time": { "type": "Float", "value": 0.0 }, "specularColor": { "type": "Color", "value": { "r": 1.0, "g": 0.79, "b": 0.0 } }, "speedFactors": { "type": "Vector2", "value": { "x": 0.8, "y": 0.625 } } }, "instanceProperties": { "mxW": { "type": "InstanceTransform4x4" }, "specularIntensity": { "type": "Float", "value": 0.6 }, "specularPower": { "type": "Float", "value": 128.0 }, "fresnelPower": { "type": "Float", "value": 0.96 }, "fresnelOffset": { "type": "Float", "value": 0.8 }, "reflectionIntensity": { "type": "Float", "value": 0.95 }, "color": { "type": "Color", "value": { "r": 1.0, "g": 1.0, "b": 1.0, "a": 0.5 } }, "uvScales": { "type": "Vector2", "value": { "x": 0.1, "y": 0.05 } }, "normalMap": { "type": "Texture2D", "value": "water_n" } } }, { "name": "leafs", "passes": ["shadow", "vegetation", "vegetation_alpha", null, null, null, null, null], "pins": { "ALPHA_CUT": 1, "OPACITY_MAP": 1 }, "useCulling": true, "instanceProperties": { "mxW": { "type": "InstanceTransform4x4" }, "colorMap": { "type": "Texture2D" }, "opacityMap": { "type": "Texture2D" }, "shadowCutRef": { "type": "Float", "value": 0.2 }, "alphaCutRef": { "type": "Float", "value": 0.5 }, "transparency": { "type": "Float", "value": 1.0 } } }, { "name": "grass", "passes": [null, "vegetation_alpha", null, null, null, null, null], "pins": { "SHADOWS": 1, "OPACITY_MAP": 1 }, "useCulling": true, "instanceProperties": { "mxW": { "type": "InstanceTransform4x4" }, "colorMap": { "type": "Texture2D" }, "opacityMap": { "type": "Texture2D" }, "transparency": { "type": "Float", "value": 1.0 } } }, { "name": "glass", "passes": ["shadow", "glass", null, null, null, null, null, null], "useCulling": true, "instanceProperties": { "mxW": { "type": "InstanceTransform4x4" }, "specularIntensity": { "type": "Float", "value": 0.5 }, "specularPower": { "type": "Float", "value": 4096.0 }, "fresnelPower": { "type": "Float", "value": 0.96 }, "fresnelOffset": { "type": "Float", "value": 0.2 }, "reflectionIntensity": { "type": "Float", "value": 0.9 }, "color": { "type": "Color", "value": { "r": 0.3, "g": 0.3, "b": 0.15, "a": 0.5 } }, "aoMap": { "type": "Texture2D", "value": "ao-teapot" } } }, { "name": "pfx-bloom", "passes": [null, null, null, "resolve", "bright", "v-blur", "h-blur", "combine"], "properties": { "brightThreshold": { "type": "Float", "value": 0.95 }, "brightScale": { "type": "Float", "value": 1.0 }, "blurWeights0": { "type": "Vector4", "value": { "x": 0.1370228164, "y": 0.1296180307, "z": 0.1097192942, "w": 0.0831085392 } }, "blurWeights1": { "type": "Vector4", "value": { "x": 0.0563317639, "y": 0.0341669419, "z": 0.0185440216, "w": 0.0 } }, "sourceIntensity": { "type": "Float", "value": 1.0 } } } ] }