Sketch transforms your game into a notebook with a simple click.
Once installed, select the camera of the scene and add the component ‘Sketch‘.
When you add it you will see something like:
With ‘Strength‘ (1) you can select the strength of the effect. You can vary the intensity with ‘Intensity‘ (2) and keep in mind that the higher the intensity, the lower the performance. You can change the intensity of the lines in ‘Definition‘ (3).
In ‘Mode‘ (4) you can select where the effect is drawn. With ‘Screen‘ the entire screen will be render with ‘Sketch’.
With ‘Layer‘ you can select the layers you want to be render with the effect. Simply select the layers you want and they will be the only ones in which the effect is applied. If you see any accuracy faults, you can adjust the sensitivity with ‘Depth threshold‘ (13) at ‘Advanced settings‘.
With ‘Distance‘ mode you can select the depth curve to modulate the effects strength. The range starts at the ‘Near‘ distance of the camera and ends at ‘Far‘.
Both modes, ‘Layer‘ and ‘Distance‘, add a depth texture to the camera, and may not be available on some mobile platforms. You should also keep in mind that both modes depend on the ‘Far‘ parameter of your camera. If you use a ‘Far‘ too large (default is 1000), you may have precision problems, so I advise you to reduce it as much as possible.
By activating ‘Color’ (5), you can change various aspects of the final color of the effect.
Pressing at ‘[doc]’ (14) will go to the online help and in the ‘Reset‘ (15) button some parameters will return to their default values.
All code is inside the namespace ‘Ibuprogames.SketchAsset‘ and main component is ‘Sketch‘. So if you want to use it you must first import its namespace:
If ‘myCamera‘ is a valid camera and you want to add the effect, you should do something like:
Sketch sketch = mycamera.gameObject.AddComponent<Sketch>();
All the code are well commented, I recommend reading the code if you want more information.
Any questions or suggestions you have, we will be happy to answer you in our mail: