This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inline void InitializeStandardLitSurfaceData(float2 uv, out SurfaceData outSurfaceData) | |
{ | |
#if UNITY_COLORSPACE_GAMMA | |
half gamma =2.2; | |
#endif | |
half4 albedoAlpha = SampleAlbedoAlpha(uv, TEXTURE2D_ARGS(_BaseMap, sampler_BaseMap)); | |
outSurfaceData.alpha = Alpha(albedoAlpha.a, _BaseColor, _Cutoff); | |
half4 specGloss = SampleMetallicSpecGloss(uv, albedoAlpha.a); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class DynamicPapersUpdater : MonoBehaviour { | |
public GameObject FrontPagePrefab; | |
public GameObject BackPagePrefab; | |
public BookPro book; | |
// Use this for initialization |