Brlcad/How to mged/shader

Shader types

edit

There are three types of shaders available from within mged:

  • Paint shaders
  • Plastic shaders
  • Light shaders

Paint shaders

edit

Paint shaders apply pigment and texture to object surfaces.

  • bwtexture -- black and white texture maps.
  • camo -- camouflage shader.
  • checker -- checkerboard shader.
  • cloud -- Geoffrey Gardner 2d style cloud texture map.
  • fakestar -- fake star pattern.
  • texture -- full colour texture mapping.

Plastic shaders

edit

The three plastic shaders are:

Light shader

edit

The light shader provides a complex facility for producing image illumination.

Full list of shaders

edit

The mged tool provides support for the following shader types:

  • bump -- The bump map shader.
  • bwtexture -- black and white texture maps.
  • camo -- camouflage shader.
  • checker -- checkerboard shader.
  • cloud -- Geoffrey Gardner 2d style cloud texture map.
  • envmap -- environment mapping shader.
  • fakestar -- fake star pattern.
  • fbmbump -- fractional brownian motion noise applied to a normal.
  • fbmcolor -- fractional brownian motion noise applied to colour.
  • fire -- simulated flames.
  • glass -- simulated grass.
  • gravel -- gravel noiset applied to color and normal.
  • light -- light source.
  • marble -- marble texture.
  • mirror -- mirror surface.
  • plastic -- simulated plastic.
  • rtrans -- random transparency.
  • scloud -- 3D cloud shader.
  • spm -- spherical texture maps.
  • stack -- stacking shader.
  • stxt -- shape texture mapping.
  • texture -- full colour texture mapping.
  • turbump -- turbulence noise applied to normals.
  • turcolor -- turbulence noise applied to colour.
  • wood -- wooden texture.

See also

edit