Deprecated: Return type of Requests_Cookie_Jar::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web207/a0/68/5394768/htdocs/sinethi/wp-includes/Requests/Cookie/Jar.php on line 63 Deprecated: Return type of Requests_Cookie_Jar::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web207/a0/68/5394768/htdocs/sinethi/wp-includes/Requests/Cookie/Jar.php on line 73 Deprecated: Return type of Requests_Cookie_Jar::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web207/a0/68/5394768/htdocs/sinethi/wp-includes/Requests/Cookie/Jar.php on line 89 Deprecated: Return type of Requests_Cookie_Jar::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web207/a0/68/5394768/htdocs/sinethi/wp-includes/Requests/Cookie/Jar.php on line 102 Deprecated: Return type of Requests_Cookie_Jar::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web207/a0/68/5394768/htdocs/sinethi/wp-includes/Requests/Cookie/Jar.php on line 111 Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web207/a0/68/5394768/htdocs/sinethi/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 40 Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web207/a0/68/5394768/htdocs/sinethi/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 51 Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web207/a0/68/5394768/htdocs/sinethi/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 68 Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web207/a0/68/5394768/htdocs/sinethi/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 82 Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web207/a0/68/5394768/htdocs/sinethi/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 91 Shader Graph

Colorfull BumperCars

Colored BumperCars at startup

BumperCars are now ingame as you can see and hey – they’re pretty colorfull aren’t they? But how did we do it?

First of all, freeze did an unwrap (artitsts stuff meaning to unfold a 3D model into a plane in 2D with a digital magic wand or maybe blender – did not listen very well to his explanations). Since Unity uses PBR (Physcally based rendering), we need several image to create our materials for base color, metallness, smoothness and a normal map for tiny details.

We could have used different base color maps, one for each color, but then we would have to change it over and over again for each possible color. That’s rather stupid and boring work to do. That’s why we thought about creating a shader with Unity’s Shader Graph Package. But there are areas, where we want a color to change and others to stay. Though we added a grayscale mask map, which defines white areas to change color and black, which will stay unchanged. At last we need color and brightness values. Now wer’re able to change a color on the fly. Nice, huh?

MaskedColorShader shader graph

Et Voila, here is an overview of our MaskedColorShader and our material for the blue BumperCar in Unity.

MaskedColorShaderMaterial with values you can change

Maybe in a later post we’ll explain that shader in detail, if you’re interested in. So long, and thanks for all the (colored) fish.

More info on BumperCar game – GET COLORIZED.