OGLHUDShader (object)

バージョン 1.12.0 で追加.

The OGLHUDShader is used to draw HUD geometry, or Heads Up Display objects. It positions the geometry on screen in screen coordinates.

Uniforms

Name Type Description Default
u_color Color The diffuse color Color(1.0, 0.0, 0.0)

Attributes

Name Type Description
positions Vec3 Geometry positions

OGLHUDShader OGLHUDShader OGLHUDShader OGLInlineShader OGLInlineShader OGLHUDShader->OGLInlineShader InlineEntityBase InlineEntityBase OGLInlineShader->InlineEntityBase InlineShader InlineShader OGLInlineShader->InlineShader InlineEntity InlineEntity InlineEntityBase->InlineEntity

/*
** Example: OGLHUDShader
*/

require InlineDrawing;
  
operator entry() {

  InlineDrawing draw = OGLInlineDrawing();
  InlineShader shader = draw.registerShader(OGLHUDShader);
  InlineMaterial mat = shader.getOrCreateMaterial('green');
  mat.setUniform('u_color', Color(0.0, 1.0, 0.0));
  
}

/*
** Output:


*/

Methods

  OGLHUDShader ( in OGLHUDShader other )
  OGLHUDShader ( in String name )
  OGLHUDShader ()
OGLHUDShader clone ? ()

Methods in detail

OGLHUDShader ( in OGLHUDShader other )

copy constructor


OGLHUDShader ( in String name )

default constructor taking a name


OGLHUDShader ()

default constructor


OGLHUDShader OGLHUDShader.clone? ()

clone method