• Register

I'm an Australian Game Artist with 3 years professional experience in the Games Industry.
I Specialize in Realistic & Styled Environments, Props & Weapons for AAA & Mobile Games.
Titles I've worked on Include Miscreated (Available on Steam) & Flame Run (Android)

RSS My Blogs

Strumpy Shader Editor by Strumpy Games is a Visual Shader Creation Package. Its Completely Free to download & use. You can download it from the Asset Store or Direct Download from the Unity Forums.

What is a Shader? Shaders control what type of Map the a Material can Intput & display such as Diffuse, Normal + Detail, Spec (Power/ Sharpness), Emissive, Cubemap, Rimlight & Alpha Transparency. This Tutorial will cover all the above and more.

When Beginning a new Shader I like to break it down into what individual Parts I want the shader to do. For a basic game Shader you’d use Diffuse, Normal & Specular. For a more complex shader such as a Glass Shader you’d Add Transparency through the Diffuse Alpha. It’s always better performance wise to keep your shader as simple as possible and use multiple shaders needed for a certain type of material. However some things must be sacrificed in order to do this. Eg. A shader using Diffuse + Alpha Transparency needs to have the Specular in a separate channel. However If you don’t need Transparency you can apply your Specular through your Diffuse Alpha.
For the Purposes of this Tutorial I’ll go through creating a Complex Shader that will give you can Idea of what can be done and you’ll be able to Optimize later to create any shader you wish.

Navigating Strumpy Shader:
Install it like a normal Package, this will add Shader Editor to the top Bar/ Strumpy Shader Editor. A save shader Error will appear, Ignore it. when opening Strumpy your given Node Graph & Preview. To move around use Alt + Left Mouse. To connect nodes left Click the connection box to another, to Remove Right click on the Line. To move nodes select them once to highlight and drag to move them around.

Setting up a new Shader:
Your given a basic starter Shader when you open Strumpy. In the Right go to File/ New Graph. You have a Master Node that controls all your Connections for your nodes. You can add a new Node under the “Node” tab (4th Top Tab) or by right clicking in the graph. Some Import Nodes are Tex2D, Sampler2D, Add, Multiply, Range & Float. You can Name each Input under the Input Tab (2nd Tab)/ Description, This means it will display with that name when you save the Shader.

Naming_Strumpy


Diffuse, Normal & Spec:
To setup Diffuse, Normal & Spec you need a Tex2D (This is the Connection Node for the RGBA + A) & Sampler2D (Direct Connection of 2D Texture). you can multiply a Color with the Diffuse to act as an Override by using a Multiply & a Color Node. Normal Maps Connect to the “Normal” in the master Node. Use a UnpackNormal Node, Tex2DNormal & Sampler2D. Specular is done the same way as Diffuse but is plugged into the “Specular” Channel of the master node. I’ve also Added a Spec Shineness so I’ve used an Add to “Add” the Spec Color Override to the Specular then Multiply the Texture with the Shininess. Refer to the below Image.

Strumpy #1

*Note: Anything in Red Requires fixing before you can save the Shader out.

Emmisive, Cube Map, Normal Map Detail & Rim Light:
These are most of the Additional features that can be added to a shader If need be. Emmisive creates a self Illuminated effect that can be used for faking Lights. This is plugged into the Emission node. Cube Map uses a Texture as a reflection in an Object (I might go through setting up Cube Maps in a later Post). This is done with a TexCUBE, SamplerCube & SimpleWorldReflection Node much like the Normal Map. Normal Map Detail is Exactly the same as the Normal Map, the reason I call it Detail is because this is used as a High detail Normal Map, when you get close to the object Eg. Brick, the Detail Normal appears. This is the Normal Map Tiled a Number of times Eg. 10x. Rim Light is exactly what it sounds like, It adds a Light around the Rim of the Object. This is done using a Power, Fresnel, ViewDirection & Range (Controls the Strength).

Alpha Transparency:
setting up Transparency is done using a Multiply from the Alpha Master Node. and connecting Arg1 (Argument 1) to A (In Tex2D) & a Range in Arg2. This will allow you to use a Alpha Channel in your Diffuse for Transparency. However If you have an Object with Opaque and Transparency This could have Alpha sorting Problems (Solid Objects will appear in front or behind Transparent object).
Cutout Transparency is done connecting Clip – Subtract (Alg1) – Range & (Alg2) – Tex2D (A) in the Diffuse. Only settings that need changing are Queue Settings need to be set to Transparent.

Cutout_Strumpy

These are just a basic summery of what each part does and what they use. After a while of using Strumpy you will begin to understand exactly what each Node is doing.

BackFace Culling:
is only render the face of an object in the direction of its Normals. This is good for Objects like a Building or a Tree. Having No BackFace culling will render both sides which uses a little more performance then having backface culling but its not noticeable. Having no BackFace Culling is good for Glass or 2D Geometry. to Turn No/Off Culling go to the Settings Tab/ Culling and Depth Settings/ CullMode/ Back (BackFace), Front or Off.

Settings Strumpy


Settings:
The Settings Tab is where you Name what your Shader will appear as In Unity. there are a number of settings such as Color, Lighting, Blending, Culling & Fog. Part of setting up Transparency for correct Cutout Transparency is done here as well as BackFace Culling.

Strumpy Reference Image

Reference Shader Setup Image.

Start a group Groups
Unity Games

Unity Games

1,812 members Hobbies & Interests

For all Unity developers and developers-to-be, both beginners and professionals!

Indie Gamers

Indie Gamers

1,508 members Hobbies & Interests

For fans of indie games and hardcore indie gamers, no matter whether these indies are commercial or freeware/opensource. This hub used for many indie...

Indie Devs

Indie Devs

1,659 members Hobbies & Interests

A group dedicated to indie and standalone game development.

Indiegogo

Indiegogo

51 members Web & Community

Indiegogo is a crowdfunding platform where people who want to raise money can create fundraising campaigns to tell their story and get the word out. Indiegogo...

UDK Developer's Group

UDK Developer's Group

697 members Hardware & Tech

This is a group for all developers using the Unreal Developer's Kit. Open for all commercial, non-commercial and personal projects!

Indie DB

Indie DB

2,610 members Official

Indie games are changing the world, one giant pixel at a time. With Indie DB we aim to support independent developers and their games, by providing them...

CryENGINE  Developers

CryENGINE Developers

413 members Fans & Clans

Welcome to the "CryENGINE 3 Developers" group . The CryENGINE 3 Developers group is all about creating levels, mod, Total modifications, addon's, machinima...

iOS Gamers

iOS Gamers

32 members Hardware & Tech

A group for all iOS Gamers! Join if you can't put your iPhone, iPad, or iPod down!

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Level
Avatar
Avatar
Last Online
Country
Australia 🇦🇺
Gender
Male
Friends
Become friends
Member watch
Follow
2012 App of the Year AwardsCompsCryENGINE  DevelopersDesuraIndie DB
Statistics
Rank
8,573 of 697,453
Visitors
49,463 (2 today)
Time Online
2 hours
Activity Points
407
Watchers
1 member
Comments
4
Site visits
1,370
Contact
Contact
Send Message
Homepage
Carlkent.com
Steam
http://steamcommunity.com/id/CarlPlus
Twitter

Latest tweets from @carlk3d

Folio update with assets from Miscreated Carlkent.com

Apr 16 2014

Currently working with Entrada Interactive on Miscreated a POST-APOCALYPTIC SANDBOX MMO! Check it out. Miscreatedgame.com

Mar 23 2014

In Game Art Before & After. Pause Button needs slight scale down - Gifmaker.me

Feb 23 2014

#3 of a 10 Weapon Pack. Combat Knife Carlkent.com

Feb 1 2014

#2 of a 10 Weapon Pack. Colt 1911 Carlkent.com

Jan 25 2014

#1 of a 10 Weapon Pack. M9 Beretta I.imgur.com

Jan 25 2014

I just updated my website. Carlkent.com

Jan 21 2014

Win 1 out of 3 Battlefield 4 Origin Keys Woobox.com

Dec 9 2013

I just uploaded "Painted Textures - Broken Tiles - 2 Hour Timelapse" to Vimeo: Vimeo.com

Dec 8 2013

I just uploaded "Painted Textures - Brown Bricks - 78 Minutes" to Vimeo: Vimeo.com

Dec 3 2013

Friends
timothycourtney
timothycourtney Online
SentinelW0lf
SentinelW0lf Online
Fourdee Online
cobagames
cobagames Online
Canute231
Canute231 Online