top of page

Quality Check for Texel Density


inline float4 CalcTexelDensity(float2 uv, float4 Tex_TexelSize)
{
	float2 dx = ddx(uv);
	float2 dy = ddx(uv);
	float texelArea = abs(dx.x * dy.y - dx.y * dy.x);
	float texelDensity = Tex_TexelSize.x *  Tex_TexelSize.y / sqrt(texelArea);
	return texelDensity;
}


Recent Posts

See All
Height Map and Parallax Mapping

In this blog, I will explain Adjust UV using HeightMap RayTrace HeightMap to find Occlusions. o.Height = SAMPLE_TEXTURE2D(_PKDMAP,...

 
 
 
Vertex Wind

Simulating wind using Vertex displacement

 
 
 

Comments


bottom of page