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.