CarmenSandiego/Assets/Shaders/CrookPortrait.shader
Jamie Greunbaum b0995571c0 This is a big one:
- Added more camera switches to the end of round 3.
- Made round 3 camera animations reset more reliably.
- Added more decorations, including self-updating Wanted and Missing posters.
- Added a crook portrait for Carmen Sandiego as part of the above.
- Uncommented seemingly useless code in CaseVideoSyncPlayer; not so useless.
- RandomVideoPlayer now sets ownership properly on ownership transfer.
- Location board crook portraits no longer use a shared material.
- Lowered resolution of crook portraits.
- Paper materials now have their normal map on the detail UVs instead.
- Drew more of Robocrook's lower half, and filled out his portrait more.
2026-03-12 04:46:43 -04:00

58 lines
1.4 KiB
Plaintext

Shader "Carmen/Crook Portrait"
{
Properties
{
_MainTex ("Portrait", 2D) = "white" {}
}
SubShader
{
Tags { "RenderType" = "Opaque" }
LOD 200
CGPROGRAM
#pragma surface surf Standard
//#pragma vertex vert
//#pragma fragment frag
UNITY_DECLARE_TEX2D(_MainTex);
// struct Data
// {
// float4 vertex : POSITION;
// float2 uv : TEXCOORD0;
// };
// struct Vert2Frag
// {
// float4 position : SV_POSITION;
// float2 uv : TEXCOORD0;
// };
struct Input
{
float2 uv_MainTex;
};
// Vert2Frag vert(inout Data v)
// {
// Vert2Frag o;
// o.position = UnityObjectToClipPos(v.vertex);
// o.uv = v.uv;
// return o;
// }
// fixed4 frag(Vert2Frag i) : SV_TARGET
// {
// return UNITY_SAMPLE_TEX2D(_MainTex, i.uv);
// }
void surf (Input IN, inout SurfaceOutputStandard o)
{
o.Albedo = UNITY_SAMPLE_TEX2D(_MainTex, IN.uv_MainTex).rgb;
}
ENDCG
}
Fallback "Diffuse"
}