Skip to content

Shaders

Pixit Mesh Painter includes URP-compatible shaders for lighting and paint blending.


🎨 PaintableLit_URP.shader

The main shader that supports runtime painting while maintaining URP lighting.
It behaves like a standard Lit shader but blends an additional _PaintTex layer.

Core Code

half4 paint = SAMPLE_TEXTURE2D(_PaintTex, sampler_PaintTex, IN.uv);
albedo = lerp(albedo, paint.rgb, paint.a * _PaintBlend);

βš™οΈ Properties

Property Description
_BaseMap Base albedo texture
_BaseColor Base tint color
_PaintTex Runtime paint layer
_PaintBlend Blending intensity
_Smoothness URP smoothness
_Metallic URP metallic control

🧱 BrushBlit Shader

This hidden shader handles applying brush strokes to RenderTextures.
You don’t assign it manually β€” the system uses it internally for stamping.