โ† All examples

godot shaders

Blueprint x-ray with dashed hidden lines

Show a mesh as a see-through blueprint drawing: solid white contour lines on front faces, dashed lines for contours on hidden back faces, a faint object-space graph paper grid and a translucent blue fill.

Recorded render of Blueprint x-ray with dashed hidden lines

What this component contains

  • ATTRIBUTION.md
  • LICENSE
  • README.md
  • blueprint_schematic.gdshader
  • component.json
  • demo.tscn
  • inspect_shader.py
  • material.tres
  • preview.png
  • test_package.py
  • verification/native.json

How it works

Shader type
spatial
Render modes
unshaded, cull_disabled, depth_draw_never, shadows_disabled
Parameters
fill_color (vec4 = 0.08, 0.26, 0.58, 0.25), line_color (vec4 = 0.9, 0.96, 1, 1), contour_width (float = 0.25), dash_pixels (float = 10), hidden_opacity (float = 0.55), grid_size (float = 0.1), grid_opacity (float = 0.25)
Result
A transparent blue object drawn with white contour lines, dashed where they are behind the surface, over faint grid paper.
Renderers
compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
Placement
res://baltor/godot_shaders/blueprint_schematic/

Recorded checks

godot 4.7.2.stable.official.ed1daf0bf

  • contract_static
  • engine_run
  • engine_log_clean
  • shader_in_scene
  • capture_written
  • render_not_uniform
  • shader_changes_pixels

Limits to consider

Contour lines come from the facing ratio, so flat faces seen edge-on fill completely and creases between flat faces are not drawn. Dashes run diagonally in screen space and do not follow the curve. Not sorted against other transparent objects.