|
|
|
|
|
|
half3 NormalTS(VertexOutputLit IN) |
|
|
|
{ |
|
|
|
#if defined(_NORMALMAP) |
|
|
|
#if BUMP_SCALE_NOT_SUPPORTED |
|
|
|
#if !SHADER_HINT_NICE_QUALITY |
|
|
|
return UnpackNormal(readTexture(TEXTURE2D_PARAM(_BumpMap, sampler_BumpMap), IN)); |
|
|
|
#else |
|
|
|
return UnpackNormalScale(readTexture(TEXTURE2D_PARAM(_BumpMap, sampler_BumpMap), IN), _BumpScale); |
|
|
|