Reflective probe
1: Mirror metal, such as a smooth surface of the object will be reflected, while the game calculates real-time reflection is very CPU-intensive resources,
unity5.0 a new reflection probe technology, through the sampling point, generate reflection CubeMap, and then through a specific shader from the CubeMap sample, Can show the reflection effect;
2: Parameters of the Reflection probe:
Type: Set the type of reflection probe (baked, custom, realtime) three types; custom is also baked, but you can customize the
Dynamic Object: The objects in the scene that are not identified as static are baked into the emission texture;
Cubemap: Baked cube texture map;
Refresh mode: Onawake refresh only on wake-up, everyframe per frame refresh, Via Scripts script control;
Time Slicing: Reflection screen refresh frequency: All face at Once:9 frame complete one refresh (medium) Individual faces:14 frame complete refresh (low performance) No time slicing: Refresh per frame (maximum performance consumption );
Importance: Weights, according to the weight to mix the reflection of different probe;
Intensity: The color brightness of the reflected texture;
Box Projection: If this is checked, the size and origin of probe will affect the mapping of the reflection map;
Size: The size of the probe's area, where all objects in the area will be reflected (requires standard shader);
Probe Origin: The Reflection probe origin, which affects the captured cubemap;
Whether high dynamic range images (Dymainc range) are used in HDR generation CubeMap This also affects the data storage location of the probe;
Shadown Distance: The shadow Distance in the reflection graph, beyond which the shadow is not reflected;
Clearflags: Sets the background in the reflection graph to be a sky box or a single color;
Background: Sets the color of the background;
Culling Mask: Reflection culling, determines which layers of objects are reflected;
Using occlustion Culling: whether to initiate occlusion culling when baking;
Clipping plances: Reflective clipping plane, near, far two parameters
Reflection Probe Example
1. Create a Unity project and file directory
2. Drag the Sky Box Resource folder to res, create a materials file under Res, and create a sky box material inside it called Skybox
3. Set the shader of the material ball skybox---->skybox---->6sided, link the 6 textures of the sky box to the skybox material
4. Create a flat plane and resize this plane scalex=100,scalez=100
5. Create an empty node Ref_object, add the component of the reflection probe Relfection Probe, there is a yellow box in which objects in this frame will participate in the reflection
6. To see the reflective material, create a material ball ref under the Materials folder, tick allow reflection reflections
7. Associate the ref material to the material properties of the plane, and the entire plane looks like a mirror.
8. Create a cube, set to Lightmap
About Lighting in Unity (vi)