Jump to content

Brlcad/How to mged/shader

From Wikibooks, open books for an open world

Shader types

[edit | edit source]

There are three types of shaders available from within mged:

  • Paint shaders
  • Plastic shaders
  • Light shaders

Paint shaders

[edit | edit source]

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 | edit source]

The three plastic shaders are:

Light shader

[edit | edit source]

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

Full list of shaders

[edit | edit source]

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 | edit source]