메뉴얼/아무거나 메뉴얼 15

(자작)[HLSL]표적따라 화면이 이동하는 포스트 이펙트 코드

버텍스 쉐이더 Out.position = In.position;//화면 앞에 고정 Out.Texcoord = In.Texcoord.xy; Out.Texcoord = float2(In.Texcoord.x, In.Texcoord.y+1); float3 centerUV = float3(0,0,0) - mul(In.position,WorldViewProjection).xyz; Out.uvvac = float3(centerUV.x,centerUV.y*-1,centerUV.z); 픽쉘쉐이더 부분 float4 outColor; outColor.rgb = shaderColor*tex2D(colorSampler,In.T..