Texture LOD 계산식 Shader / Material

float2 dx = ddx(uv * 512); 
float2 dy = ddy(uv * 512); 
float d = max(dot(dx, dx), dot(dy, dy)); 
tex2Dlod(tex, float4(uv, 0, log2(sqrt(d))));

덧글

댓글 입력 영역