The shaders seem to show up in the Inspector list If you want to make your shader appear in a submenu of the shader list in the Inspector, name it like this: That gave me a duplicate of the Standard shader, with culling-off. I didn't want to overwrite the Standard Shader in case I needed it, so I named my shader "StandardCullOFF.shader" and inside the shader I changed the name (at the start of the shader file): Give the shader you edit a different name. If the shader you wrote or edited has errors in it, it might not show up in the list.Ģ. Anyways, after figuring out how to edit the standard shader (you put CULL OFF in the sub-shader section), I was pleased to see Unity accepted the new shader and listed it with the other shaders in the Inspector automatically. I liked the standard shader, I just wanted it to render both sides of the model (it was a cape that was only visible from one side because of culling). I have a lot of previous programming experience, but I had a hard time finding out how to switch culling off in Unity, and I finally found out about the shaders having culling on by default. I just copied the shader and gave it a new name, and I changed the name inside the shader to match. If someone knows how to turn culling off in Unity 2018, let us know.Ĭlick to expand.I'm not sure if it overwrites the shader or just creates a new shader with (1) added to the name. One other thing, I noticed that I my CULL OFF shader no longer worked in Unity 2018, and after editing the 2018 version of the Standard Shader, I was still not able to get it to work in Unity 2018.x. A lot of people were posting online that the only way to fix that was to duplicate all the mesh and faces, and then flip them. I had a hard time finding out how to turn culling off. I need culling to be off so often that I wish it was off by default. It would be nice if you could easily switch the culling off, but there's posts spanning years of people still trying to figure out how to use materials and textures properly on Unity. That should be a working(really basic) shader, but shows the layout. It should look like this:Ĭombine texture * primary DOUBLE, texture * primary You have to download the default Unity shaders(assuming you can't find better ones to use) and then edit them(being sure to rename them properly), adding the Cull Off to the sub-shader section of the *.shader. You can't edit the default ones, but you can edit copies of them. Just a tip for anyone still trying to figure out the culling, you can just add Cull Off to any shader in the SubShader section.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |