Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Cell Look
- URP로 변경
- working set
- 가상 바이트
- 메모리 누수
- 게임 수학
- VR
- 3d
- Rim Light
- 벡터
- 개인 바이트
- Cell Shader
- Cartoon Rendering
- Virtual Byte
- Toon Shader
- ColorGradingLutPass
- AppSW
- URP
- OculusMotionVectorPass
- Private Bytes
- Specular
- Three(Two) Tone Shading
- Windows Build
- ASW(Application SpaceWarp)
- 작업 집합
- 프로그래밍 기초
- C언어
Archives
- Today
- Total
WinCNT
Vignetting 본문
Vignetting 현상은 빛을 모으는 렌즈의 특성상 초점에서 멀어질수록
광량이 줄어들어서 주변부가 어두워 지는 현상을 말한다
(대부분의 렌즈에서 발생하며 저렴한 렌즈에서 많이 발생함)
Vignetting 기법은 이미지를 필름 카메라의 느낌을 들게 만드는 기법이다
다양한 구현 방법이 존재한다
Vignetting Code
sampler2D Texture0;
float fAlpha;
float4 ps_main( float2 texCoord : TEXCOORD0 ) : COLOR
{
float2 uv = texCoord - 0.5f;
float dist = length(uv);
float radius = 0.8;
float softness = 0.4;
float vignette = smoothstep(radius, radius - softness, dist);
float4 c0 = tex2D( Texture0, texCoord );
float4 c1 = c0 * vignette;
return lerp( c0, c1, fAlpha );
}
SSS
'게임 프로그래밍(학습 내용 정리) > 게임 수학' 카테고리의 다른 글
Edge Detect Filter (0) | 2022.06.28 |
---|---|
Light Shaft (0) | 2022.06.28 |
DOF(Depth Of Field) (0) | 2022.06.21 |
Posterize (0) | 2022.06.21 |
Pixelate (0) | 2022.06.21 |