JSON: 

{
    "autoStart": false,
    "renderer": {
        "params": {
            "antialias": true
        },
        "shadowMap": {
            "enabled": true
        },
        "outputEncoding": "{THREE.sRGBEncoding}"
    },
    "composer": {
        "effect": "bloom",
        "params": {
            "options": {
                "blendFunction": 16,
                "luminanceThreshold": 0.9,
                "luminanceSmoothing": 0.025,
                "resolutionScale": 0.5,
                "intensity": 1
            }
        }
    },
    "scene": {
        "background": {
            "type": "file",
            "type1": "color",
            "color1": "#cacaca",
            "format": "hdr",
            "path": "textures/",
            "file": "dikhololo_night_4k.hdr"
        },
        "env0": {
            "type": "room"
        }
    },
    "camera": {
        "fov": 45,
        "near": 0.1,
        "far": 10000,
        "position": {
            "x": 0,
            "y": 4,
            "z": 5
        },
        "@lookAt": [
            0,
            10,
            0
        ]
    },
    "control": {
        "type": "orbit",
        "autoUpdateScene": true,
        "maxPolarAngle0": "{Math.PI * 0.52}",
        "maxDistance": 160
    },
    "lights": [
        {
            "type": "ambient",
            "params": [
                "#444444"
            ],
            "props":{
                "position":{
                    "x": 0,
                    "y":10,
                    "z":0
                }
            }
        },
        {
            "type": "point",
            "params": [
                "#4444cc"
            ],
            "props":{
                "position": {
                    "x": 0, 
                    "y": -2,
                    "@normalize": []
                }
            }
        },
        
        {
            "type": "Directionallight",
            "params": {
                "color": "#ff99aa",
                "intensity": 1
            },
            "props":{
                "position":{
                    "x": 10,
                    "y": 5,
                    "z": 10
                },
                "castShadow":true,
                "shadow": {
                    "mapSize":{
                        "width": 2048,
                        "height": 2048
                    },
                    "camera":{
                        "near": 0.1,
                        "far": 100,
                        "left": 5, 
                        "right": -5, 
                        "top": 5,
                        "bottom": -5
                    },
                    "darkness": 0.5,
                    "bias": -0.001
                }
            }
        }
    ],
    "objects": [
        {
            "type": "mesh",
            "id": "mess-1",
            "data": {
                "geometry": {
                    "type": "SphereBuffer",
                    "params": {
                        "radius": 10000,
                        "segments": 200000
                    }
                },
                "material": {
                    "type": "phong",
                    "params": {
                        "color": "#aaaaaa",
                        "depthWrite": false,
                        "side": "{THREE.BackSide}"
                    }
                },
                "props": {
                    "position": {
                        "y": -5
                    },
                    "rotation": {
                        "x": "{- Math.PI / 2}"
                    },
                    "receiveShadow": true
                }
            }
        },
        {
            "type": "mesh1",
            "id": "mess-2",
            "data": {
                "geometry": {
                    "type": "PlaneBuffer",
                    "params": {
                        "width": 1000,
                        "height": 1000
                    }
                },
                "material": {
                    "type": "standard",
                    "params": {
                        "roughness": 0.8,
                        "color": "#ffffff",
                        "metalness": 0.2,
                        "bumpScale": 0.0005
                    },
                    "props": {
                        "map": {
                            "$three": "texture",
                            "file": "textures/hardwood2_diffuse.jpg",
                            "props": {
                                "wrapS": "{THREE.RepeatWrapping}",
                                "wrapT": "{THREE.RepeatWrapping}",
                                "anisotropy": 4,
                                "repeat": {
                                    "@set": [
                                        10,
                                        24
                                    ]
                                },
                                "encoding": "{THREE.sRGBEncoding}"
                            }
                        },
                        "bumpMap": {
                            "$three": "texture",
                            "file": "textures/hardwood2_bump.jpg",
                            "props": {
                                "wrapS": "{THREE.RepeatWrapping}",
                                "wrapT": "{THREE.RepeatWrapping}",
                                "anisotropy": 4,
                                "repeat": {
                                    "@set": [
                                        10,
                                        24
                                    ]
                                },
                                "encoding": "{THREE.sRGBEncoding}"
                            }
                        },
                        
                        "roughnessMap": {
                            "$three": "texture",
                            "file": "textures/hardwood2_roughness.jpg",
                            "props": {
                                "wrapS": "{THREE.RepeatWrapping}",
                                "wrapT": "{THREE.RepeatWrapping}",
                                "anisotropy": 4,
                                "repeat": {
                                    "@set": [
                                        10,
                                        24
                                    ]
                                },
                                "encoding": "{THREE.sRGBEncoding}"
                            }
                        }
                    }
                },
                "props": {
                    "position": {
                        "y": -1
                    },
                    "rotation": {
                        "x": "{- Math.PI / 2}"
                    },
                    "receiveShadow": true
                }
            }
        },
        {
            "type": "model",
            "id": "model-1",
            "data": {
                "params": {
                    "path": "models/new-model/",
                    "file": "model.gltf",
                    "type": "gltf",
                    "useRoughnessMipmapper": true
                },
                "props": {
                    "castShadow": true,
                    "receiveShadow": true,
                    "position": {
                        "x": -1.5,
                        "y": -0.5,
                        "z": 0
                    }
                },
                "options": {
                    "centerPivot": true
                }
            }
        },
        {
            "type": "model",
            "id": "model-2",
            "data": {
                "params": {
                    "path": "models/gltf/trapot/",
                    "file": "01.gltf",
                    "type": "gltf",
                    "useRoughnessMipmapper": true
                },
                "props": {
                    "castShadow": true,
                    "receiveShadow": true,
                    "position": {
                        "x": 2,
                        "y": -0.68,
                        "z": 0
                    }
                }
            }
        }
    ]
}
    

 

File JSON: http://demo.vcc.vn/threejs/demo-003-model.json