Professional Documents
Culture Documents
com
Installing
DownloadStrumpy'sShaderintheAssetstore(Ctrl+9)orWindow>AssetStore.Makesure youimportitaswell. AfterImportingityoushouldseerightnexttoTerrainontheUnityToolbarthereisanewtabfor ShaderEditor.ClickitandlaunchStrumpysShaderEditor
ImageaboveiswhereontheUnitytoolbaryoucanfindSSE.
Bringing2DTexturebitmapsandIntroductioninto Strumpy's
Makesureyouhavefolderscreatedinsideofyourprojectfilefortexturesandshaders.Toput texturesintotheenginejustsavetheminsideofafolderinsideoftheproject(ex. D:\Robo\Assets\Textures\Characters\Chorman). Nowthattexturesareinsideoftheengineyoubringthemintotheeditorby: GototheInputstabandclickatthetop"AddNewInput..".AddaTexture2Dpropertyafter addingityouwillseea2DaddedundertheInputstab.Veryimportantlyyouwillseethatthetext windownextto2DisredandsoistheInputstab.Makesureyougivethe2Dtextboxaname (ex._ChormanDiffuse). Afterdoingthatclickonthearrownextto2DandclickSelectinthecornerofthesquare. Selectyourtexture. Rightbuttonclickinsideofemptygreyspace>Property>sampler2D GointotheNodetabwiththesampled2Dpropertiesselected.Clickonthedropdownmenu UnconfigurednexttoInputPropertyandselecttheInputyoucreated(Ex._ChormanDiffuse) CreateaTex2Dnode(Function>Tex2D) Forthesampler2DnodemakesureyoupluginSampler2DandUVotherwiseitwillnotwork.
TheimageaboveshowsasimplegraphshowingDiffuse,Normal,SpecularPower(Gloss), Specular(Specular).
FromStrumpy'stoyourmesh
Afteryoufinishandgettheshadertoyourlikingyoushouldsavetheshader(File>SaveAs). Notethisisnotappliedtoamesh. Afteryousaveyouexportit(File>ExportAs).Notethisisnotappliedtoamesh. Afteryoudothatrightclickinsideofyourprojecttabinsideofunity. GoCreate>Material Afteryoucreateyourmaterialgotothematerialpropertiesbyjustclickingit.Clickonthe DiffusepulldownmenuintheShadersection.Scrolldownuntilyouseetheshaderyou exportedfromStrumpy'sandselectit. Youmighthavetoreselectthetexturesintothecorrespondingslots. NowyouhaveaMaterialyoucanapplytomeshes,particles,etc.
FakeToonEffectShader
InsideofStrumpy'sclickon"Graphs"andthenclick"Lighting". Youwillseea"LightingOutputMaster"node.Tosetupafaketooneffectyouwillneedtomakea rampandhookitupinacertainway. Onceyouhavearamp
Hookthe"LightColorNode"intothe"Luminance"node Hookthe"Luminance"nodeintotheUVpartofthe"Tex2D".
Whenyoufinishyoushouldhavesomethingliketheimageabove.