Introduction to surface shader writing in unity part 5

preview_player
Показать описание
Part 5 - Adding specularity to our shaders

In this introduction to writing surface shaders in unity tutorial we take a look at how shaders work in unity, how to write our own and how to create some cool effects.
We will be covering surface shaders using cgprogram (CG/HLSL), and shaderlab.
Рекомендации по теме
Комментарии
Автор

I cannot get this to work in Unity 4.0.1f, I even copied the entire script into my shader script but it still does not work, I just get a bunch of Material does not have... a texture, float, color... property errors. The other tutorials worked for Unity 4 though. Not sure why this doesn't seem to be working for me. Normally those type of errors are just typo's but I copied your script a second ago so I don't think that is the case.

Bytedesigning
Автор

Also it is just me or does /* comments */ not work in shader scripts? // Regular comments work though

Bytedesigning
welcome to shbcf.ru