TA/Unity

SubfaceShader 리플렉션 프로브 사용방법

프리랜서 디자이너 2020. 7. 7. 11:37

SubfaceShader 리플렉션 프로브 사용방법

 

float3 worldRefl = WorldReflectionVector (IN, o.Normal);

fixed3 ReflectionCube = UNITY_SAMPLE_TEXCUBE(unity_SpecCube0, worldRefl).rgb * unity_SpecCube0_HDR.r;

o.Emission = ReflectionCube;

 

 

출처

http://ozlael.tistory.com/38