Add MEGA Ocean Liner, split decks, and detailed ship materials
This commit is contained in:
@@ -10,6 +10,7 @@ Shader "BigShipTycoon/Passenger Surface"
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#include "UnityCG.cginc"
|
||||
#include "TycoonTexturing.cginc"
|
||||
|
||||
struct Input
|
||||
{
|
||||
@@ -61,10 +62,14 @@ Shader "BigShipTycoon/Passenger Surface"
|
||||
float glint = pow(saturate(dot(normal, normalize(lightDirection + eye))), lerp(47, 12, skin * .72 + fabric * .12));
|
||||
float luminousEdge = fresnel * (.023 + .013 * skin);
|
||||
float3 sheen = glint * lerp(float3(.112,.131,.145), float3(.102,.068,.055), skin) * (.37 + .64 * sun);
|
||||
float2 stitch = input.body.xy * float2(185, 201) + input.body.z * float2(94, -117);
|
||||
float2 filter = 1 - smoothstep(.24, .90, fwidth(stitch) * .159);
|
||||
float weave = 1 + .032 * fabric * filter.x * filter.y * (sin(stitch.x) * cos(stitch.y));
|
||||
return fixed4(saturate(input.tint.rgb * light * weave + sheen + float3(.57,.69,.76) * luminousEdge), 1);
|
||||
float2 cloth = input.body.xy + input.body.z * float2(.41, -.37);
|
||||
float knit = TycoonWeave(cloth, float2(42, 51));
|
||||
float narrowStripe = cos(cloth.y * 137 + cloth.x * 21) * TycoonDetail(cloth.y * 21.8);
|
||||
float fabricTone = fabric * (knit * .097 + narrowStripe * .024);
|
||||
float pores = TycoonStipple(cloth, 122) * skin * .058;
|
||||
float3 color = input.tint.rgb * light * (1 + fabricTone + pores) + sheen
|
||||
+ float3(.57,.69,.76) * luminousEdge;
|
||||
return fixed4(TycoonHighlightRollOff(color), 1);
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user