First Material
Now, let's make your first June material! This example will serve as a foundation for all of your future materials and allow you to explore June on your own.
Making the Cube
We can manually make a cube, remove the collider, change the shadow rendering settings, and make a material. But June can do it automatically! Simply go to the top of Unity (toolbar) and select June -> [Version] -> Make Shader Cube. You will now have a cube in your scene with a new June material applied to, and the optimal settings applied to the cube.
For manually making cubes, I suggest doing the following:
- Remove the collider.
- Disable shadows/shadow receivers.
- Ensure the size is proportional to the falloff in Rendering 🛸.
- Use a cube, not a sphere or other objects, as a cube is much simpler to render and will give you the best performance.
- You will only see the effects both within the cube and within the falloff range - plan accordingly!
Your First Effect
Now, let's enable a simple effect. Open the Border module and enable it. It might take a second while Unity silently compiles the new shader variant, but don't worry, it will be done soon and this is to help optimise performance!
Next, let's set the style of the border. Set Style to Vertical Letterboxing - this will add a cinematic-styled black bar to the bottom and top of the screen.
Finally, let's configure the strength of the effect. Let's set the 0.85. And ta-da, you have your first effect! Remember: you can mix, match, and stack effects and modules to your heart's content.
Locking the Material
Now that we are sure what effects we want to include in our final production, we can lock the material. Simply click the icon at the top right of the material inspector (the lock) and an optimised shader variant will be generated! You can learn more about locking on the Locking page.